Blocked tabyfing via moving over DockArea titlebar if the CenterDockWidgetArea is not in the allowed areas for DockAreaWidget

This commit is contained in:
Uwe Kindler 2020-02-02 16:03:58 +01:00
parent 68b0958119
commit 1dbd3f3f06

View File

@ -386,7 +386,8 @@ DockWidgetArea CDockOverlay::dropAreaUnderCursor() const
return Result; return Result;
} }
if (DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos()))) if (DockArea->allowedAreas().testFlag(CenterDockWidgetArea)
&& DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos())))
{ {
return CenterDockWidgetArea; return CenterDockWidgetArea;
} }