From 619300e36035794cd885c6248af2c9d906453eea Mon Sep 17 00:00:00 2001 From: Gleb Kasachou Date: Fri, 25 Jul 2025 12:47:47 +0300 Subject: Offer to mkpath when user goes to a nonexistent folder This commit changes Dolphin's behavior when a nonexistent local path is entered into the location bar. Previously, an error message would pop up. This commit adds a button to that message that allows to create the path and navigate to it. --- src/dolphinviewcontainer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dolphinviewcontainer.h') diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index d4ab0e66e..419b9f5b1 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -487,6 +487,8 @@ private: Admin::Bar *m_adminBar; /// An action to switch to the admin protocol. This variable will always be nullptr unless kio-admin was installed. @see Admin::WorkerIntegration. QAction *m_authorizeToEnterFolderAction; + /// An action to create new folder in case user enters a nonexistent URL in the location bar. + QAction *m_createFolderAction; KMessageWidget *m_messageWidget; -- cgit v1.3