Skip to content

Commit 81c9974

Browse files
Fixed a bug when dragging a FloatingDragPreview from another floating widget over an empty MainWindow
1 parent d6831ca commit 81c9974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FloatingDragPreview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
151151
// If there is only one single visible dock area in a container, then
152152
// it does not make sense to show a dock overlay because the dock area
153153
// would be removed and inserted at the same position
154-
if (VisibleDockAreas <= 1)
154+
if (VisibleDockAreas == 1)
155155
{
156156
ContainerOverlay->hideOverlay();
157157
}

0 commit comments

Comments
 (0)