mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4530 Wait until after Save Project has been asked to hide dock windows.
This commit is contained in:
parent
7fcb1afe6c
commit
086ee60d8c
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user