From 80156ef3f57bab877574ad2932fbeca42eee05a0 Mon Sep 17 00:00:00 2001 From: Gleb Kasachou Date: Mon, 28 Jul 2025 18:19:47 +0300 Subject: Add a check before offering to create folder This commit adds a function that checks if a folder can be created at the url entered in the location bar. This prevents offering to create folders in locations where the user does not have write permissions. --- src/dolphinviewcontainer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dolphinviewcontainer.h') diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 419b9f5b1..4acccdd81 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -460,6 +460,12 @@ private: */ QRect preferredSmallStatusBarGeometry(); + /** + * Check if a folder can be created at url. + * This method supports only local URLs. + */ + bool isFolderCreatable(QUrl url); + protected: bool eventFilter(QObject *object, QEvent *event) override; -- cgit v1.3