┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/draganddrophelper.h
diff options
context:
space:
mode:
authorJin Liu <[email protected]>2024-02-20 20:09:26 +0800
committerJin Liu <[email protected]>2024-02-27 10:13:21 +0800
commit0eed595268d2b0478eee1d5bf5ed6bbd100cdf4c (patch)
tree9628a27efb898e1966cffd68701dc9ecf916d83d /src/views/draganddrophelper.h
parentf13f3c7a267e552cbc7aed4c3cfcd3ee70989446 (diff)
Fix: can't drop into remote dir
KFileItem::isDir() only works when it's created from listDir(), or from a local QUrl. For a remote QUrl, isDir always returns false, so we can't use that in supportsDropping(). As a workaround, now supportsDropping() always returns true in remote dirs -- we don't check if a remote dir is writable when dropping.
Diffstat (limited to 'src/views/draganddrophelper.h')
-rw-r--r--src/views/draganddrophelper.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/views/draganddrophelper.h b/src/views/draganddrophelper.h
index 0eee34a3d..73043febc 100644
--- a/src/views/draganddrophelper.h
+++ b/src/views/draganddrophelper.h
@@ -45,15 +45,6 @@ public:
/**
* Checks if the destination supports dropping.
*
- * @param destUrl URL of the item destination.
- * @return True if the destination is a directory and is writable, or it's a desktop file.
- * False otherwise.
- */
- static bool supportsDropping(const QUrl &destUrl);
-
- /**
- * Checks if the destination supports dropping.
- *
* @param destItem The item destination.
* @return True if the destination is a directory and is writable, or it's a desktop file.
* False otherwise.