mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4171 Work around assert failure when closing main window last
This commit is contained in:
parent
fd01871202
commit
e9e21cf30d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user