Commit f0f983b3 authored by Lukas Appelhans's avatar Lukas Appelhans

Removed by accident and reinit local database when a transaction finished

parent 488f8eca
......@@ -131,6 +131,9 @@ Package* DatabasePrivate::packageFromRow(SQLiteResource& table, int row)
if (screenshotUrl != "NULL") {
package->d_func()->setScreenshot(QUrl(screenshotUrl));
}
if (url != "NULL") {
package->d_func()->setUrl(QUrl(url));
}
// Fetch the provided package names
SQLiteResource res = dbConnection.query(QString("SELECT provides FROM provides WHERE package=%1").arg(id));
......
......@@ -59,9 +59,9 @@ void OperationRunnerPrivate::__k__validationFinished(bool result, const QHash<Op
void OperationRunnerPrivate::__k__finished(bool success)
{
Q_Q(OperationRunner);
Backend::instance()->localDatabase()->reinit();
Backend::instance()->setStatus(Backend::StatusReady);
emit q->finished(success);
runThread.data()->deleteLater();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment