mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4410 Dock Window State : Use hideAllDockWidgets() in base class
This commit is contained in:
@@ -235,15 +235,17 @@ void RiuDockWidgetTools::restoreDockWidgetsVisibility(const QObject* parent, QVa
|
||||
{
|
||||
if (dock)
|
||||
{
|
||||
auto widgetVisibility = widgetVisibilityMap.find(dock->objectName());
|
||||
bool isVisible = true;
|
||||
|
||||
auto widgetVisibility = widgetVisibilityMap.find(dock->objectName());
|
||||
if (widgetVisibility != widgetVisibilityMap.end())
|
||||
{
|
||||
bool isVisible = widgetVisibility.value().toBool();
|
||||
dock->setVisible(isVisible);
|
||||
|
||||
// qDebug() << "Restore " << dock->objectName() << " : " << (isVisible ? "visible" : "not visible");
|
||||
isVisible = widgetVisibility.value().toBool();
|
||||
}
|
||||
|
||||
dock->setVisible(isVisible);
|
||||
|
||||
// qDebug() << "Restore " << dock->objectName() << " : " << (isVisible ? "visible" : "not visible");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user