Skip to content

Commit 4cb1931

Browse files
Fixed display of container dock overlay if only one single visible dock area is in a container
1 parent fe10b57 commit 4cb1931

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/FloatingDragPreview.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
145145
else
146146
{
147147
DockAreaOverlay->hideOverlay();
148+
// If there is only one single visible dock area in a container, then
149+
// it does not make sense to show a dock overlay because the dock area
150+
// would be removed and inserted at the same position
151+
if (1 <= VisibleDockAreas)
152+
{
153+
ContainerOverlay->hide();
154+
}
155+
148156
if (DockArea == ContentSourceArea && InvalidDockWidgetArea == ContainerDropArea)
149157
{
150158
DropContainer = nullptr;

0 commit comments

Comments
 (0)