mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3820 System : Delete RiuViewer directly instead of deleteLater()
This commit is contained in:
parent
6bcdd4e6c4
commit
1c9da3d33f
@ -248,11 +248,12 @@ void Rim3dView::updateMdiWindowTitle()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void Rim3dView::deleteViewWidget()
|
void Rim3dView::deleteViewWidget()
|
||||||
{
|
{
|
||||||
if (m_viewer)
|
// 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,
|
||||||
m_viewer->deleteLater();
|
// ie in the process of handling a QAction
|
||||||
m_viewer = nullptr;
|
|
||||||
}
|
delete m_viewer;
|
||||||
|
m_viewer = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user