mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#3820 System : Delete RiuViewer directly instead of deleteLater()
This commit is contained in:
1 parent
6bcdd4e6c4
commit
1c9da3d33f
1 file changed
+6
-5
@@ -248,11 +248,12 @@ void Rim3dView::updateMdiWindowTitle()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dView::deleteViewWidget()
|
||||
{
|
||||
if (m_viewer)
|
||||
{
|
||||
m_viewer->deleteLater();
|
||||
m_viewer = nullptr;
|
||||
}
|
||||
// Earlier implementations has used m_viewer->deleteLater(). This caused issues triggered by 3D editors and interaction with
|
||||
// the event processing. deleteLater() will not be handeled by processEvents() if we are in the state of processing UI events,
|
||||
// ie in the process of handling a QAction
|
||||
|
||||
delete m_viewer;
|
||||
m_viewer = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user