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:
parent
6b13a31349
commit
b760404876
@ -358,12 +358,15 @@ void RimProject::initAfterRead()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimProject::setupBeforeSave()
|
void RimProject::setupBeforeSave()
|
||||||
{
|
{
|
||||||
RiaGuiApplication* guiApp = RiaGuiApplication::instance();
|
if ( RiaGuiApplication::isRunning() )
|
||||||
|
|
||||||
if ( guiApp )
|
|
||||||
{
|
{
|
||||||
m_show3DWindow = guiApp->mainWindow()->isVisible();
|
RiaGuiApplication* guiApp = RiaGuiApplication::instance();
|
||||||
m_showPlotWindow = guiApp->mainPlotWindow() && guiApp->mainPlotWindow()->isVisible();
|
|
||||||
|
if ( guiApp )
|
||||||
|
{
|
||||||
|
m_show3DWindow = guiApp->mainWindow()->isVisible();
|
||||||
|
m_showPlotWindow = guiApp->mainPlotWindow() && guiApp->mainPlotWindow()->isVisible();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_projectFileVersionString = STRPRODUCTVER;
|
m_projectFileVersionString = STRPRODUCTVER;
|
||||||
|
Loading…
Reference in New Issue
Block a user