mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
Dock system selection improvements and fixes (#14305)
* Make sure we don't trigger another select when a view in the project tree is selected. * Fix for #14255 and related issues * Make sure we can close and open a main window, keeping the layout when reopened.
This commit is contained in:
12 files changed
+104
-30
No files matched your search
@@ -57,6 +57,7 @@
|
||||
#include "RiuMessagePanel.h"
|
||||
#include "RiuMultiPlotBook.h"
|
||||
#include "RiuMultiPlotPage.h"
|
||||
#include "RiuPlotMainWindowTools.h"
|
||||
#include "RiuToolTipMenu.h"
|
||||
#include "RiuTools.h"
|
||||
#include "RiuTreeViewEventFilter.h"
|
||||
@@ -275,8 +276,15 @@ void RiuPlotMainWindow::closeEvent( QCloseEvent* event )
|
||||
return;
|
||||
}
|
||||
}
|
||||
saveWinGeoAndDockToolBarLayout();
|
||||
QMainWindow::closeEvent( event );
|
||||
|
||||
RiuPlotMainWindowTools::remove3dViewsFromDocking();
|
||||
|
||||
if ( auto proj = RimProject::current() )
|
||||
{
|
||||
proj->plotWindowDockState = dockWidgetStateString();
|
||||
}
|
||||
|
||||
RiuMainWindowBase::closeEvent( event );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user