Commit 590ff7f2 authored by Lukas Appelhans's avatar Lukas Appelhans

Always after

parent b1dc72eb
......@@ -84,8 +84,8 @@ void PlainRemoveOperation::run()
int ret = Helpers::QueryPerformer::beginTransaction(Backend::instance()->localDatabase());
if (ret != SQLITE_OK) {
// Problems...
setFinished(false);
setErrors(QList<Akabei::Error*>() << new Akabei::Error(Akabei::Error::DatabaseError, QObject::tr("Could not begin database transaction!"), this));
setFinished(false);
return;
}
......@@ -95,8 +95,8 @@ void PlainRemoveOperation::run()
if (ret != SQLITE_OK) {
// Problems...
Helpers::QueryPerformer::rollbackTransaction(Backend::instance()->localDatabase());
setFinished(false);
setErrors(QList<Akabei::Error*>() << new Akabei::Error(Akabei::Error::DatabaseError, QObject::tr("Could not remove package from database!"), this));
setFinished(false);
return;
}
......@@ -105,8 +105,8 @@ void PlainRemoveOperation::run()
if (ret != SQLITE_OK) {
// Problems...
Helpers::QueryPerformer::rollbackTransaction(Backend::instance()->localDatabase());
setFinished(false);
setErrors(QList<Akabei::Error*>() << new Akabei::Error(Akabei::Error::DatabaseError, QObject::tr("Could not remove files from database!"), this));
setFinished(false);
return;
}
......@@ -116,8 +116,8 @@ void PlainRemoveOperation::run()
if (ret != SQLITE_OK) {
// Problems...
Helpers::QueryPerformer::rollbackTransaction(Backend::instance()->localDatabase());
setFinished(false);
setErrors(QList<Akabei::Error*>() << new Akabei::Error(Akabei::Error::DatabaseError, QObject::tr("Could not remove scriptlet!"), this));
setFinished(false);
return;
}
}
......
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