Commit 2d4a0a74 authored by Laurent Montel's avatar Laurent Montel
Browse files

Add window Title

parent abc905a7
......@@ -10,6 +10,7 @@
#include "akonadidatasetools_debug.h"
#include <KActionCollection>
#include <KLocalizedString>
#include <KMessageBox>
#include <QAction>
AkonadiDatabaseToolsPluginInterface::AkonadiDatabaseToolsPluginInterface(QObject *parent)
......@@ -52,7 +53,19 @@ void AkonadiDatabaseToolsPluginInterface::slotActivated()
void AkonadiDatabaseToolsPluginInterface::exec()
{
auto dlg = new AkonadiDatabaseToolsDialog;
auto dlg = new AkonadiDatabaseToolsDialog(parentWidget());
switch (mTool) {
case AkonadiDatabaseToolsUtils::AkonadiDatabaseTool::Fsck:
dlg->setWindowTitle(i18nc("@title:window", "Akonadi Fsck"));
break;
case AkonadiDatabaseToolsUtils::AkonadiDatabaseTool::Vacuum:
dlg->setWindowTitle(i18nc("@title:window", "Akonadi Vacuum"));
break;
case AkonadiDatabaseToolsUtils::AkonadiDatabaseTool::Unknown:
qCWarning(AKONADIDATABASETOOLS_LOG) << "Tool is unknown it's a bug";
break;
}
dlg->show();
auto job = new AkonadiDatabaseToolsJob(this);
job->setTool(mTool);
......
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