From 2ad92ce9583730592b773ec6a430056c6921ad54 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 26 Jun 2020 11:18:46 +0200 Subject: [PATCH] Removed superfluous code to fix issue #209 --- src/DockContainerWidget.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index bbba72d..597299d 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1516,16 +1516,6 @@ void CDockContainerWidget::dropWidget(QWidget* Widget, DockWidgetArea DropArea, // If there was a top level widget before the drop, then it is not top // level widget anymore CDockWidget::emitTopLevelEventForWidget(SingleDockWidget, false); - CDockWidget* DockWidget = qobject_cast(Widget); - if (!DockWidget) - { - CDockAreaWidget* DockArea = qobject_cast(Widget); - auto OpenDockWidgets = DockArea->openedDockWidgets(); - if (OpenDockWidgets.count() == 1) - { - DockWidget = OpenDockWidgets[0]; - } - } window()->activateWindow(); d->DockManager->notifyWidgetOrAreaRelocation(Widget);