mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#4530 Wait until after Save Project has been asked to hide dock windows.
This commit is contained in:
@@ -271,7 +271,6 @@ void RiuMainWindow::cleanupGuiBeforeProjectClose()
|
||||
void RiuMainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
this->saveWinGeoAndDockToolBarLayout();
|
||||
this->hideAllDockWidgets();
|
||||
|
||||
RiaGuiApplication* app = RiaGuiApplication::instance();
|
||||
if (app->isMainPlotWindowVisible())
|
||||
@@ -287,8 +286,8 @@ void RiuMainWindow::closeEvent(QCloseEvent* event)
|
||||
return;
|
||||
}
|
||||
|
||||
this->hideAllDockWidgets();
|
||||
app->closeMainPlotWindowIfOpenButHidden();
|
||||
|
||||
app->closeProject();
|
||||
}
|
||||
|
||||
|
||||
@@ -181,8 +181,6 @@ void RiuPlotMainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
this->saveWinGeoAndDockToolBarLayout();
|
||||
|
||||
this->hideAllDockWidgets();
|
||||
|
||||
RiaGuiApplication* app = RiaGuiApplication::instance();
|
||||
|
||||
if (app->isMain3dWindowVisible())
|
||||
@@ -198,8 +196,8 @@ void RiuPlotMainWindow::closeEvent(QCloseEvent* event)
|
||||
return;
|
||||
}
|
||||
|
||||
this->hideAllDockWidgets();
|
||||
app->closeMainWindowIfOpenButHidden();
|
||||
|
||||
app->closeProject();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user