An additional fix for #496 Nonfloatable hidden window disappears on drop in empty area

This commit is contained in:
Uwe Kindler 2023-03-22 18:22:34 +01:00
parent db3dc80170
commit df34b0eb2b

View File

@ -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();
}