Fixed a bug when dragging a FloatingDragPreview from another floating widget over an empty MainWindow

This commit is contained in:
Uwe Kindler 2020-07-13 09:08:39 +02:00
parent d6831caea4
commit 81c99745d4

View File

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