Fixed some bugs that caused problems when calling toggleView() with the same state, some refactorings to improve code
This commit is contained in:
@@ -167,9 +167,10 @@ void CDockAreaTabBar::startFloating(const QPoint& Pos)
|
||||
CFloatingDockContainer* FloatingWidget = new CFloatingDockContainer(d->DockArea);
|
||||
FloatingWidget->startFloating(Pos, Size);
|
||||
d->FloatingWidget = FloatingWidget;
|
||||
if (d->FloatingWidget->hasSingleDockWidget())
|
||||
auto TopLevelDockWidget = d->FloatingWidget->topLevelDockWidget();
|
||||
if (TopLevelDockWidget)
|
||||
{
|
||||
emit d->FloatingWidget->firstDockWidget()->topLevelChanged(true);
|
||||
TopLevelDockWidget->emitTopLevelChanged(true);
|
||||
}
|
||||
}
|
||||
} // namespace ads
|
||||
|
||||
Reference in New Issue
Block a user