Removed superfluous code to fix issue #209

This commit is contained in:
Uwe Kindler 2020-06-26 11:18:46 +02:00
parent 3de877fe56
commit 2ad92ce958

View File

@ -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<CDockWidget*>(Widget);
if (!DockWidget)
{
CDockAreaWidget* DockArea = qobject_cast<CDockAreaWidget*>(Widget);
auto OpenDockWidgets = DockArea->openedDockWidgets();
if (OpenDockWidgets.count() == 1)
{
DockWidget = OpenDockWidgets[0];
}
}
window()->activateWindow();
d->DockManager->notifyWidgetOrAreaRelocation(Widget);