| 284 | } |
| 285 | |
| 286 | void Storage::UpdateExtension(const ExtensionFile &extFile) |
| 287 | { |
| 288 | QSqlQuery query(QSqlDatabase::database(DB_CONNECTION_NAME)); |
| 289 | query.prepare( "UPDATE Extensions SET enabled = :Enabled WHERE filepath = :Filepath;"); |
| 290 | query.bindValue(":Filepath", extFile.FilePath.toStdString().c_str()); |
| 291 | query.bindValue(":Enabled", extFile.Enabled); |
| 292 | if (!query.exec()) |
| 293 | LogError("Extension not updated in database: %s\n", query.lastError().text().toStdString().c_str()); |
| 294 | } |
| 295 | |
| 296 | void Storage::RemoveExtension(const QString &filepath) |
| 297 | { |
no test coverage detected