diff options
| author | Jin Liu <[email protected]> | 2024-02-29 23:13:47 +0000 |
|---|---|---|
| committer | Jin Liu <[email protected]> | 2024-02-29 23:13:47 +0000 |
| commit | dc149ec5e52f52c514cf362603d05ba8eea506b8 (patch) | |
| tree | 70442a1ab27fedf220daeca496dfb3c842379b93 /src/dolphintabwidget.h | |
| parent | 992272f8c5b80b0d96e9419cdbe14b6f3d2a22e4 (diff) | |
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.
Diffstat (limited to 'src/dolphintabwidget.h')
| -rw-r--r-- | src/dolphintabwidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <QTabWidget> #include <QUrl> @@ -276,6 +277,8 @@ private: */ const std::optional<const ViewIndex> viewShowingItem(const QUrl &item) const; + DragAndDropHelper m_dragAndDropHelper; + private: QPointer<DolphinTabPage> m_lastViewedTab; QPointer<DolphinNavigatorsWidgetAction> m_navigatorsWidget; |
