Commit 5c38da34 authored by David Faure's avatar David Faure
Browse files

Port KRun::runCommand to CommandLauncherJob

Tested by launching the accountwizard from the intro page
parent 0e4d3925
......@@ -47,9 +47,11 @@ using namespace Kontact;
#include <KActionCollection>
#include <KActionMenu>
#include <KConfigGroup>
#include <KDialogJobUiDelegate>
#include "kontact_debug.h"
#include <KEditToolBar>
#include <KHelpMenu>
#include <KIO/CommandLauncherJob>
#include <KMessageBox>
#include <KPluginInfo>
#include <KPluginMetaData>
......@@ -874,7 +876,9 @@ void MainWindow::slotOpenUrl(const QUrl &url)
mPartsStack->setCurrentIndex(mPartsStack->indexOf(mCurrentPlugin->part()->widget()));
}
} else if (path == QLatin1String("/accountwizard")) {
KRun::runCommand(QStringLiteral("accountwizard"), this);
KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(QStringLiteral("accountwizard"));
job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->exec();
slotQuit();
} else if (path.startsWith(QLatin1String("/help"))) {
QString app(QStringLiteral("org.kde.kontact"));
......
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