Commit 0b2c490a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Show dialogbox

parent 836cbf70
......@@ -21,6 +21,7 @@ AkonadiDatabaseToolsDialog::AkonadiDatabaseToolsDialog(QWidget *parent)
: QDialog(parent)
, mAkonadiDatabaseToolsWidget(new AkonadiDatabaseToolsWidget(this))
{
setAttribute(Qt::WA_DeleteOnClose);
setWindowTitle(i18nc("@title:window", "Akonadi Database Tool"));
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
......
......@@ -52,7 +52,11 @@ void AkonadiDatabaseToolsPluginInterface::slotActivated()
void AkonadiDatabaseToolsPluginInterface::exec()
{
AkonadiDatabaseToolsJob *job = new AkonadiDatabaseToolsJob(this);
auto dlg = new AkonadiDatabaseToolsDialog;
dlg->show();
auto job = new AkonadiDatabaseToolsJob(this);
job->setTool(mTool);
connect(job, &AkonadiDatabaseToolsJob::receivedStandardError, dlg, &AkonadiDatabaseToolsDialog::appendText);
connect(job, &AkonadiDatabaseToolsJob::receivedStandardOutput, dlg, &AkonadiDatabaseToolsDialog::appendText);
job->start();
}
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