Git commit 47cb8882dcf184baba68ab26baadcffb228af748 by Yury G. Kudryashov. Committed on 26/01/2015 at 14:22. Pushed by kudryashov into branch 'master'. Use KRun::runService instead of deprecated KRun::run This change is suggested by the deprecation message in KRun header file. REVIEW: 122262 M +2 -2 addons/filetree/katefiletree.cpp M +1 -1 addons/project/kateprojecttreeviewcontextmenu.cpp M +2 -2 kate/src/katemainwindow.cpp http://commits.kde.org/kate/47cb8882dcf184baba68ab26baadcffb228af748 diff --git a/addons/filetree/katefiletree.cpp b/addons/filetree/katefiletre= e.cpp index 986d8df..cddd9e3 100644 --- a/addons/filetree/katefiletree.cpp +++ b/addons/filetree/katefiletree.cpp @@ -308,14 +308,14 @@ void KateFileTree::slotOpenWithMenuAction(QAction *a) // display "open with" dialog KOpenWithDialog dlg(list); if (dlg.exec()) { - KRun::run(*dlg.service(), list, this); + KRun::runService(*dlg.service(), list, this); } return; } = KService::Ptr app =3D KService::serviceByDesktopPath(openWith); if (app) { - KRun::run(*app, list, this); + KRun::runService(*app, list, this); } else { KMessageBox::error(this, i18n("Application '%1' not found.", openW= ith), i18n("Application not found")); } diff --git a/addons/project/kateprojecttreeviewcontextmenu.cpp b/addons/pro= ject/kateprojecttreeviewcontextmenu.cpp index cfc4e70..0dda9b7 100644 --- a/addons/project/kateprojecttreeviewcontextmenu.cpp +++ b/addons/project/kateprojecttreeviewcontextmenu.cpp @@ -150,7 +150,7 @@ void KateProjectTreeViewContextMenu::exec(const QString= &filename, const QPoint if (KService::Ptr app =3D KService::serviceByDesktopPath(openW= ith)) { QList list; list << QUrl::fromLocalFile(filename); - KRun::run(*app, list, parent); + KRun::runService(*app, list, parent); } } } diff --git a/kate/src/katemainwindow.cpp b/kate/src/katemainwindow.cpp index 464e20c..7a34b94 100644 --- a/kate/src/katemainwindow.cpp +++ b/kate/src/katemainwindow.cpp @@ -828,14 +828,14 @@ void KateMainWindow::slotOpenWithMenuAction(QAction *= a) // display "open with" dialog KOpenWithDialog dlg(list); if (dlg.exec()) { - KRun::run(*dlg.service(), list, this); + KRun::runService(*dlg.service(), list, this); } return; } = KService::Ptr app =3D KService::serviceByDesktopPath(openWith); if (app) { - KRun::run(*app, list, this); + KRun::runService(*app, list, this); } else { KMessageBox::error(this, i18n("Application '%1' not found.", openW= ith), i18n("Application not found")); }