From 4cb1931acec0ce21e0ebc38742b3d4f1c066e368 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 2 Mar 2020 11:21:44 +0100 Subject: [PATCH] Fixed display of container dock overlay if only one single visible dock area is in a container --- src/FloatingDragPreview.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/FloatingDragPreview.cpp b/src/FloatingDragPreview.cpp index ac4a602..85f1280 100644 --- a/src/FloatingDragPreview.cpp +++ b/src/FloatingDragPreview.cpp @@ -145,6 +145,14 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos) else { DockAreaOverlay->hideOverlay(); + // If there is only one single visible dock area in a container, then + // it does not make sense to show a dock overlay because the dock area + // would be removed and inserted at the same position + if (1 <= VisibleDockAreas) + { + ContainerOverlay->hide(); + } + if (DockArea == ContentSourceArea && InvalidDockWidgetArea == ContainerDropArea) { DropContainer = nullptr;