From 9b83378c087a87cef537ba751b7713aff8bed84c Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 14 Sep 2020 16:01:47 +0200 Subject: Check protocol Class before creating a StatJob StatJob::mostLocalUrl only works with ":local" protocols, adjust the code accordingly. Make the code async. Remove activeContainerLocalPath() method as it isn't needed anymore. Drive-by change: minimum required version of Qt should be 5.12 because that's what KF >= 5.73 already requires. --- src/dolphinmainwindow.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 79084ae7d..c03eb1be0 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -592,12 +592,6 @@ private: /** Adds "What's This?" texts to many widgets and StandardActions. */ void setupWhatsThis(); - /** - * Returns the KIO::StatJob::mostLocalUrl() for the active container URL - * if it's a local file. Otherwise returns the user's home path. - */ - QString activeContainerLocalPath(); - /** Returns preferred search tool as configured in "More Search Tools" menu. */ QPointer preferredSearchTool(); -- cgit v1.3