mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3587 Clear all selections as part of delete of temporary LGRs
This commit is contained in:
@@ -1005,8 +1005,7 @@ void RiaApplication::closeProject()
|
||||
|
||||
terminateProcess();
|
||||
|
||||
RiuSelectionManager::instance()->deleteAllItems();
|
||||
caf::SelectionManager::instance()->clearAll();
|
||||
RiaApplication::clearAllSelections();
|
||||
|
||||
mainWnd->cleanupGuiBeforeProjectClose();
|
||||
|
||||
@@ -1591,6 +1590,16 @@ bool RiaApplication::enableDevelopmentFeatures()
|
||||
return environmentVar.toInt() == 1;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaApplication::clearAllSelections()
|
||||
{
|
||||
RiuSelectionManager::instance()->deleteAllItems(RiuSelectionManager::RUI_APPLICATION_GLOBAL);
|
||||
RiuSelectionManager::instance()->deleteAllItems(RiuSelectionManager::RUI_TEMPORARY);
|
||||
caf::SelectionManager::instance()->clearAll();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -203,6 +203,7 @@ public:
|
||||
void saveWinGeoAndDockToolBarLayout();
|
||||
|
||||
static bool enableDevelopmentFeatures();
|
||||
static void clearAllSelections();
|
||||
|
||||
private:
|
||||
void onProjectOpenedOrClosed();
|
||||
|
||||
Reference in New Issue
Block a user