┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorAhmad Samir <[email protected]>2020-08-18 08:43:58 +0000
committerDavid Faure <[email protected]>2020-08-18 08:43:58 +0000
commit257eeebf4b71f846799009394370e0755a4225e1 (patch)
tree9cc6ede544903eccb96fd927a4af205f179649a3 /src/dolphinmainwindow.h
parent864b59fcf1915bd2ca13703cc1e625f435224b27 (diff)
Port KRun to OpenUrlJob
In DolphinMainWindow, since KRun allows running executables by default, use setRunExecutables(true) so as not to change the behaviour. Remove the now redundant slotHandleUrlStatFinished, that whole StatJob logic is now handled by OpenUrlJob. Bump KF required version to 5.73, since that's where OpenUrlJob::setShowOpenOrExecuteDialog was introduced.
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 9c36c98b2..59e0afa31 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -54,6 +54,10 @@ class QIcon;
class PlacesPanel;
class TerminalPanel;
+namespace KIO {
+ class OpenUrlJob;
+}
+
/**
* @short Main window for Dolphin.
*
@@ -433,12 +437,6 @@ private slots:
void handleUrl(const QUrl& url);
/**
- * handleUrl() can trigger a stat job to see if the url can actually
- * be listed.
- */
- void slotHandleUrlStatFinished(KJob* job);
-
- /**
* Is invoked when the write state of a folder has been changed and
* enables/disables the "Create New..." menu entry.
*/
@@ -644,7 +642,7 @@ private:
QToolButton* m_controlButton;
QTimer* m_updateToolBarTimer;
- KIO::Job* m_lastHandleUrlStatJob;
+ KIO::OpenUrlJob *m_lastHandleUrlOpenJob;
TerminalPanel* m_terminalPanel;
PlacesPanel* m_placesPanel;