diff options
| author | Felix Ernst <[email protected]> | 2024-06-26 12:45:48 +0200 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2024-07-01 14:06:01 +0000 |
| commit | e2f316578909e4c886430110808d4681997b3cb7 (patch) | |
| tree | 24ad0b932127925198e06cf8befecdc106b382ed /src/dolphintabwidget.cpp | |
| parent | 92b178b7404b002778d8288353f65e27ee5de5dd (diff) | |
Revert "DragAndDropHelper::updateDropAction: use StatJob for remote URLs"
This reverts commit dc149ec5e52f52c514cf362603d05ba8eea506b8.
This prevents a crash. One issue identified is that the commit that
I am reverting here accesses a QDropEvent at a moment in time in
which it might have already been deleted. We cannot check if it
exists by that time because we do not control its lifetime and it
is not a QObject.
Diffstat (limited to 'src/dolphintabwidget.cpp')
| -rw-r--r-- | src/dolphintabwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp index 9bfd6076a..f80b94ea7 100644 --- a/src/dolphintabwidget.cpp +++ b/src/dolphintabwidget.cpp @@ -9,6 +9,7 @@ #include "dolphin_generalsettings.h" #include "dolphintabbar.h" #include "dolphinviewcontainer.h" +#include "views/draganddrophelper.h" #include <KAcceleratorManager> #include <KConfigGroup> @@ -23,7 +24,6 @@ DolphinTabWidget::DolphinTabWidget(DolphinNavigatorsWidgetAction *navigatorsWidget, QWidget *parent) : QTabWidget(parent) - , m_dragAndDropHelper{this} , m_lastViewedTab(nullptr) , m_navigatorsWidget{navigatorsWidget} { @@ -394,7 +394,7 @@ void DolphinTabWidget::tabDragMoveEvent(int index, QDragMoveEvent *event) { if (index >= 0) { DolphinView *view = tabPageAt(index)->activeViewContainer()->view(); - m_dragAndDropHelper.updateDropAction(event, view->url()); + DragAndDropHelper::updateDropAction(event, view->url()); } } |
