#3587 Clear all selections as part of delete of temporary LGRs

This commit is contained in:
Magne Sjaastad
2018-10-30 14:02:22 +01:00
parent 9cddc02066
commit 715003f58e
4 changed files with 16 additions and 7 deletions

View File

@@ -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();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -203,6 +203,7 @@ public:
void saveWinGeoAndDockToolBarLayout();
static bool enableDevelopmentFeatures();
static void clearAllSelections();
private:
void onProjectOpenedOrClosed();