Skip to content

Commit 61573cb

Browse files
authored
Fix crash in auto hide tab (#552)
- Crash is caused by dragging an autohide tab out when it is an icon only. - The crash can actually happen with non icon only tabs, but is masked by the orientation check. - Soln: Check if auto hide container exists first on mouse finish dragging event.
1 parent 2d2de53 commit 61573cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutoHideTab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ void CAutoHideTab::mouseReleaseEvent(QMouseEvent* ev)
478478
case DraggingFloatingWidget:
479479
ev->accept();
480480
d->FloatingWidget->finishDragging();
481-
if (d->DockWidget->isAutoHide() && d->DragStartOrientation != orientation())
481+
if (d->DockWidget->autoHideDockContainer() && d->DragStartOrientation != orientation())
482482
{
483483
d->DockWidget->autoHideDockContainer()->resetToInitialDockWidgetSize();
484484
}

0 commit comments

Comments
 (0)