]> cloud.milkyroute.net Git - dolphin.git/commit
DragAndDropHelper::updateDropAction: use StatJob for remote URLs
authorJin Liu <m.liu.jin@gmail.com>
Thu, 29 Feb 2024 23:13:47 +0000 (23:13 +0000)
committerJin Liu <m.liu.jin@gmail.com>
Thu, 29 Feb 2024 23:13:47 +0000 (23:13 +0000)
commitdc149ec5e52f52c514cf362603d05ba8eea506b8
tree70442a1ab27fedf220daeca496dfb3c842379b93
parent992272f8c5b80b0d96e9419cdbe14b6f3d2a22e4
DragAndDropHelper::updateDropAction: use StatJob for remote URLs

When dragging onto tabs/Places from a remote URL, we don't process
the QDropEvent immediately, but start a StatJob and process the
event when it finishes.

Also, the result of the StatJob is cached for 30 seconds, to avoid
starting duplicate jobs.
src/dolphintabwidget.cpp
src/dolphintabwidget.h
src/panels/places/placespanel.cpp
src/panels/places/placespanel.h
src/views/draganddrophelper.cpp
src/views/draganddrophelper.h