From 81c99745d45cb8617c8ca6bf021efee523d851f1 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 13 Jul 2020 09:08:39 +0200 Subject: [PATCH] Fixed a bug when dragging a FloatingDragPreview from another floating widget over an empty MainWindow --- src/FloatingDragPreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FloatingDragPreview.cpp b/src/FloatingDragPreview.cpp index 2df152a..8d222d3 100644 --- a/src/FloatingDragPreview.cpp +++ b/src/FloatingDragPreview.cpp @@ -151,7 +151,7 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos) // 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 (VisibleDockAreas <= 1) + if (VisibleDockAreas == 1) { ContainerOverlay->hideOverlay(); }