mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#4171 Work around assert failure when closing main window last
This commit is contained in:
1 parent
fd01871202
commit
e9e21cf30d
2 files changed
+4
No files matched your search
@@ -264,6 +264,8 @@ void RiuMainWindow::closeEvent(QCloseEvent* event)
|
||||
|
||||
if (app->isMainPlotWindowVisible())
|
||||
{
|
||||
event->ignore(); // Make Qt think we don't do anything, otherwise it closes the window.
|
||||
this->hide(); // Instead we just hide it.
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -169,6 +169,8 @@ void RiuPlotMainWindow::closeEvent(QCloseEvent* event)
|
||||
|
||||
if (app->isMain3dWindowVisible())
|
||||
{
|
||||
event->ignore();
|
||||
this->hide();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user