From dc149ec5e52f52c514cf362603d05ba8eea506b8 Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Thu, 29 Feb 2024 23:13:47 +0000 Subject: 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.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dolphintabwidget.h') diff --git a/src/dolphintabwidget.h b/src/dolphintabwidget.h index a28a6bea1..a02c8fb84 100644 --- a/src/dolphintabwidget.h +++ b/src/dolphintabwidget.h @@ -9,6 +9,7 @@ #include "dolphinnavigatorswidgetaction.h" #include "dolphintabpage.h" +#include "views/draganddrophelper.h" #include #include @@ -276,6 +277,8 @@ private: */ const std::optional viewShowingItem(const QUrl &item) const; + DragAndDropHelper m_dragAndDropHelper; + private: QPointer m_lastViewedTab; QPointer m_navigatorsWidget; -- cgit v1.3