mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-18 03:49:47 -06:00
#7778 Check for valid pointer to main window before use
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user