#7778 Check for valid pointer to main window before use

This commit is contained in:
Magne Sjaastad committed 2022-05-22 11:35:40 +02:00
1 parent 886f5e3295
commit ccfc0e25bc
4 files changed
+29 -28

No files matched your search

@@ -353,8 +353,8 @@ void RimProject::setupBeforeSave()
if ( guiApp )
{
m_show3DWindow = guiApp->mainWindow()->isVisible();
m_showPlotWindow = guiApp->mainPlotWindow() && guiApp->mainPlotWindow()->isVisible();
m_show3DWindow = guiApp->isMain3dWindowVisible();
m_showPlotWindow = guiApp->isMainPlotWindowVisible();
}
}