Fix weird behavior when widget is overlayed

This commit is contained in:
Syarif Fakhri 2022-09-19 18:11:47 +08:00
parent b567f6c5d2
commit 32f9b4664b

View File

@ -181,7 +181,7 @@ void DockWidgetPrivate::showDockWidget()
DockArea->toggleView(true);
TabWidget->show();
QSplitter* Splitter = internal::findParent<QSplitter*>(DockArea);
while (Splitter && !Splitter->isVisible())
while (Splitter && !Splitter->isVisible() && !DockArea->isOverlayed())
{
Splitter->show();
Splitter = internal::findParent<QSplitter*>(Splitter);