mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4173 Fix problems with saving state when closing 3d Window before closing plot window
This commit is contained in:
@@ -165,6 +165,8 @@ void RiuPlotMainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
|
||||
app->savePlotWinGeoAndDockToolBarLayout();
|
||||
|
||||
if (app->isMain3dWindowVisible())
|
||||
{
|
||||
return;
|
||||
@@ -176,9 +178,7 @@ void RiuPlotMainWindow::closeEvent(QCloseEvent* event)
|
||||
return;
|
||||
}
|
||||
|
||||
app->saveWinGeoAndDockToolBarLayout();
|
||||
|
||||
if (!app->tryCloseMainWindow()) return;
|
||||
app->closeMainWindowIfOpenButHidden();
|
||||
|
||||
app->closeProject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user