mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash on save project in console mode
This commit is contained in:
committed by
Magne Sjaastad
parent
6b13a31349
commit
b760404876
@@ -357,6 +357,8 @@ void RimProject::initAfterRead()
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimProject::setupBeforeSave()
|
void RimProject::setupBeforeSave()
|
||||||
|
{
|
||||||
|
if ( RiaGuiApplication::isRunning() )
|
||||||
{
|
{
|
||||||
RiaGuiApplication* guiApp = RiaGuiApplication::instance();
|
RiaGuiApplication* guiApp = RiaGuiApplication::instance();
|
||||||
|
|
||||||
@@ -365,6 +367,7 @@ void RimProject::setupBeforeSave()
|
|||||||
m_show3DWindow = guiApp->mainWindow()->isVisible();
|
m_show3DWindow = guiApp->mainWindow()->isVisible();
|
||||||
m_showPlotWindow = guiApp->mainPlotWindow() && guiApp->mainPlotWindow()->isVisible();
|
m_showPlotWindow = guiApp->mainPlotWindow() && guiApp->mainPlotWindow()->isVisible();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_projectFileVersionString = STRPRODUCTVER;
|
m_projectFileVersionString = STRPRODUCTVER;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user