mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
An additional fix for #496 Nonfloatable hidden window disappears on drop in empty area
This commit is contained in:
parent
db3dc80170
commit
df34b0eb2b
@ -351,11 +351,10 @@ void CFloatingDragPreview::finishDragging()
|
||||
auto DockDropArea = d->DockManager->dockAreaOverlay()->visibleDropAreaUnderCursor();
|
||||
auto ContainerDropArea = d->DockManager->containerOverlay()->visibleDropAreaUnderCursor();
|
||||
bool ValidDropArea = (DockDropArea != InvalidDockWidgetArea) || (ContainerDropArea != InvalidDockWidgetArea);
|
||||
bool FloatingRequested = !d->DropContainer && !ValidDropArea;
|
||||
|
||||
// Non floatable auto hide widgets should stay in its current auto hide
|
||||
// state if they are dragged into a floating window
|
||||
if (!FloatingRequested || d->isContentFloatable())
|
||||
if (ValidDropArea || d->isContentFloatable())
|
||||
{
|
||||
cleanupAutoHideContainerWidget();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user