mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Removed superfluous code to fix issue #209
This commit is contained in:
parent
3de877fe56
commit
2ad92ce958
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user