[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kate] /: Use KRun::runService instead of deprecated KRun::run
From: Yury G. Kudryashov <urkud () urkud ! name>
Date: 2015-01-31 20:39:25
Message-ID: E1YHepB-0007E3-FX () scm ! kde ! org
[Download RAW message or body]
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/katefiletree.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 = KService::serviceByDesktopPath(openWith);
if (app) {
- KRun::run(*app, list, this);
+ KRun::runService(*app, list, this);
} else {
KMessageBox::error(this, i18n("Application '%1' not found.", openWith), \
i18n("Application not found")); }
diff --git a/addons/project/kateprojecttreeviewcontextmenu.cpp \
b/addons/project/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 = KService::serviceByDesktopPath(openWith)) {
QList<QUrl> 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 = KService::serviceByDesktopPath(openWith);
if (app) {
- KRun::run(*app, list, this);
+ KRun::runService(*app, list, this);
} else {
KMessageBox::error(this, i18n("Application '%1' not found.", openWith), \
i18n("Application not found")); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic