From 257eeebf4b71f846799009394370e0755a4225e1 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Tue, 18 Aug 2020 08:43:58 +0000 Subject: 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. --- src/dolphinmainwindow.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/dolphinmainwindow.h') 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. * @@ -432,12 +436,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; -- cgit v1.3