diff options
| author | Kai Uwe Broulik <[email protected]> | 2017-03-08 16:52:15 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2017-03-08 16:52:15 +0100 |
| commit | b79ea9f5e4a83e4cc877235a6aa62f666bee0289 (patch) | |
| tree | 5a7fbc123ab92d25923392607b8c8cf64edf196d /src/dolphinmainwindow.cpp | |
| parent | 6dcbb8127c5a1da644f2927521ccac40bea54614 (diff) | |
Pass application name and icon to KRun
Otherwise this results in the generic executable icon as bouncy cursor.
Differential Revision: https://phabricator.kde.org/D4823
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 185db7193..2784bd08c 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -290,7 +290,7 @@ void DolphinMainWindow::updateFilterBarAction(bool show) void DolphinMainWindow::openNewMainWindow() { - KRun::run(QStringLiteral("dolphin %u"), QList<QUrl>(), this); + Dolphin::openNewWindow({}, this); } void DolphinMainWindow::openNewActivatedTab() @@ -331,7 +331,7 @@ void DolphinMainWindow::openInNewWindow() } if (!newWindowUrl.isEmpty()) { - KRun::run(QStringLiteral("dolphin %u"), {newWindowUrl}, this); + Dolphin::openNewWindow({newWindowUrl}, this); } } @@ -772,11 +772,9 @@ void DolphinMainWindow::openContextMenu(const QPoint& pos, changeUrl(KIO::upUrl(item.url())); break; - case DolphinContextMenu::OpenParentFolderInNewWindow: { - - KRun::run(QStringLiteral("dolphin %u"), {KIO::upUrl(item.url())}, this); + case DolphinContextMenu::OpenParentFolderInNewWindow: + Dolphin::openNewWindow({KIO::upUrl(item.url())}, this); break; - } case DolphinContextMenu::OpenParentFolderInNewTab: openNewTab(KIO::upUrl(item.url())); |
