]> cloud.milkyroute.net Git - dolphin.git/commit
Fix: can't drop into remote dir
authorJin Liu <m.liu.jin@gmail.com>
Tue, 20 Feb 2024 12:09:26 +0000 (20:09 +0800)
committerJin Liu <m.liu.jin@gmail.com>
Tue, 27 Feb 2024 02:13:21 +0000 (10:13 +0800)
commit0eed595268d2b0478eee1d5bf5ed6bbd100cdf4c
tree9628a27efb898e1966cffd68701dc9ecf916d83d
parentf13f3c7a267e552cbc7aed4c3cfcd3ee70989446
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.
src/views/draganddrophelper.cpp
src/views/draganddrophelper.h