mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#493) Blocking MDI window activation handler when toggling off well log plot
This commit is contained in:
@@ -114,7 +114,10 @@ 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;
|
||||
|
||||
@@ -2284,3 +2284,11 @@ bool RiuMainWindow::isAnyMdiSubWindowVisible()
|
||||
return m_mdiArea->subWindowList().size() > 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::blockSubWindowActivatedSlot(bool block)
|
||||
{
|
||||
m_blockSlotSubWindowActivated = block;
|
||||
}
|
||||
|
||||
|
||||
@@ -116,6 +116,8 @@ public:
|
||||
void tileWindows();
|
||||
bool isAnyMdiSubWindowVisible();
|
||||
|
||||
void blockSubWindowActivatedSlot(bool block);
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent* event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user