Fix crash if 3d window is not there when importing summary data

This commit is contained in:
Jon Jenssen
2022-05-23 10:54:09 +02:00
committed by jonjenssen
parent 26f1387bc6
commit 05ce13b533
6 changed files with 14 additions and 5 deletions

View File

@@ -192,6 +192,14 @@ RiuMainWindow* RiuMainWindow::instance()
return nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuMainWindow::closeIfOpen()
{
if ( instance() != nullptr ) instance()->close();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -83,6 +83,7 @@ public:
~RiuMainWindow() override;
static RiuMainWindow* instance();
static void closeIfOpen();
QString mainWindowName() override;