mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed detaching of auto hide widgets in a floating widget
This commit is contained in:
parent
0a6c58fd66
commit
6924e69b6b
@ -684,8 +684,10 @@ void CDockAreaTitleBar::setAreaFloating()
|
||||
{
|
||||
// If this is the last dock area in a dock container it does not make
|
||||
// sense to move it to a new floating widget and leave this one
|
||||
// empty
|
||||
if (d->DockArea->dockContainer()->isFloating() && d->DockArea->dockContainer()->dockAreaCount() == 1)
|
||||
// empty.
|
||||
auto DockContainer = d->DockArea->dockContainer();
|
||||
if (DockContainer->isFloating() && DockContainer->dockAreaCount() == 1
|
||||
&& !d->DockArea->isAutoHide())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user