mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#493) Correct handling of MDI sub window activation.
Setting bool member variable that blocks sub window activation slot temporarily at the correct places - the main window methods that sets active viewer and removes a viewer.
This commit is contained in:
@@ -114,11 +114,9 @@ void RimWellLogPlot::updateViewerWidget()
|
||||
{
|
||||
windowGeometry = RiuMainWindow::instance()->windowGeometryForViewer(m_viewer);
|
||||
|
||||
RiuMainWindow::instance()->blockSubWindowActivatedSlot(true);
|
||||
RiuMainWindow::instance()->removeViewer(m_viewer);
|
||||
RiuMainWindow::instance()->blockSubWindowActivatedSlot(false);
|
||||
|
||||
detachAllCurves();
|
||||
|
||||
delete m_viewer;
|
||||
m_viewer = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user