From b3fdbd47b32379a84f541bc617d31cdc78232578 Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Fri, 23 Jun 2023 11:08:27 +0800 Subject: [PATCH] isVisible is invalid during restore state --- src/AutoHideSideBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoHideSideBar.cpp b/src/AutoHideSideBar.cpp index 62afdfb..85e4b99 100644 --- a/src/AutoHideSideBar.cpp +++ b/src/AutoHideSideBar.cpp @@ -336,7 +336,7 @@ bool CAutoHideSideBar::hasVisibleTabs() const { for (auto i = 0; i < tabCount(); i++) { - if (tabAt(i)->isVisible()) + if (tabAt(i)->isVisibleTo(parentWidget())) { return true; }