mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash if 3d window is not there when importing summary data
This commit is contained in:
@@ -192,6 +192,14 @@ RiuMainWindow* RiuMainWindow::instance()
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::closeIfOpen()
|
||||
{
|
||||
if ( instance() != nullptr ) instance()->close();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -83,6 +83,7 @@ public:
|
||||
~RiuMainWindow() override;
|
||||
|
||||
static RiuMainWindow* instance();
|
||||
static void closeIfOpen();
|
||||
|
||||
QString mainWindowName() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user