#9935 Avoid storing dock layout if window never has been visible

Do not save the state if the window never has been visible. This will write out a state that is not valid.
This commit is contained in:
Magne Sjaastad
2024-09-11 15:56:35 +02:00
parent 9e41db33f5
commit eb0b02ae46
2 changed files with 18 additions and 0 deletions

View File

@@ -117,6 +117,8 @@ protected:
virtual QStringList windowsMenuFeatureNames() = 0;
void showEvent( QShowEvent* event ) override;
protected slots:
void slotDockWidgetToggleViewActionTriggered();
void slotRefreshHelpActions();
@@ -156,6 +158,7 @@ private:
bool m_showFirstVisibleWindowMaximized;
bool m_blockSubWindowActivation;
bool m_blockSubWindowProjectTreeSelection;
bool m_hasBeenVisible;
ads::CDockManager* m_dockManager;
};