#4530 Wait until after Save Project has been asked to hide dock windows.

This commit is contained in:
Gaute Lindkvist 2019-07-30 12:50:08 +02:00
parent 7fcb1afe6c
commit 086ee60d8c
2 changed files with 2 additions and 5 deletions

View File

@ -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();
}

View File

@ -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();
}