Commit 27f5b5dc authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Use KToolInvocation insead of deprecated KRun

This respects the user defined settings in the
"Default Applications" KCM and also works on windows.
parent 00621d1e
......@@ -43,6 +43,7 @@
#include <KIOWidgets/KRun>
#include <KWidgetsAddons/KCursor>
#include <KWidgetsAddons/KMessageBox>
#include <KToolInvocation>
void
......@@ -195,7 +196,7 @@ RadialMap::Widget::mousePressEvent(QMouseEvent *e)
//KRun::runCommand will show an error message if there was trouble
KRun::runCommand(QString("kfmclient openURL '%1'").arg(url.url()), this);
else if (result == actKonsole)
KRun::runCommand(QString("konsole --workdir '%1'").arg(url.url()), this);
KToolInvocation::invokeTerminal(QString(), url.url());
else if (result == actViewMag || result == actFileOpen)
goto sectionTwo;
else if (result == actEditDel) {
......
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