Commit 9fb9a19c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix can start

parent b7b81574
......@@ -17,7 +17,7 @@ AkonadiDatabaseToolsJob::~AkonadiDatabaseToolsJob() = default;
bool AkonadiDatabaseToolsJob::canStart() const
{
return processExist().isEmpty() && (mTool != AkonadiDatabaseToolsUtils::AkonadiDatabaseTool::Unknown);
return !processExist().isEmpty() && (mTool != AkonadiDatabaseToolsUtils::AkonadiDatabaseTool::Unknown);
}
QString AkonadiDatabaseToolsJob::processExist() const
......@@ -54,6 +54,7 @@ void AkonadiDatabaseToolsJob::start()
if (!mProcess->waitForFinished()) {
qCWarning(AKONADIDATABASETOOLS_LOG) << "Impossible to start akonadi vacuum";
}
// TODO use thread
break;
}
......@@ -71,6 +72,7 @@ void AkonadiDatabaseToolsJob::start()
if (!mProcess->waitForFinished()) {
qCWarning(AKONADIDATABASETOOLS_LOG) << "Impossible to start akonadi fsck";
}
// TODO use thread
break;
}
}
......
Supports Markdown
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