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:
parent
9cddc02066
commit
715003f58e
@ -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();
|
||||
|
@ -145,9 +145,7 @@ void RicCreateTemporaryLgrFeature::onActionTriggered(bool isChecked)
|
||||
mainGrid->calculateFaults(activeCellInfo);
|
||||
}
|
||||
|
||||
RiuSelectionManager::instance()->deleteAllItems(RiuSelectionManager::RUI_APPLICATION_GLOBAL);
|
||||
RiuSelectionManager::instance()->deleteAllItems(RiuSelectionManager::RUI_TEMPORARY);
|
||||
caf::SelectionManager::instance()->clearAll();
|
||||
RiaApplication::clearAllSelections();
|
||||
|
||||
deleteAllCachedData(eclipseCase);
|
||||
RiaApplication::instance()->project()->mainPlotCollection()->deleteAllCachedData();
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
#include "RicReloadCaseFeature.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RimEclipseCase.h"
|
||||
|
||||
#include "RiuSelectionManager.h"
|
||||
@ -56,8 +58,7 @@ void RicReloadCaseFeature::onActionTriggered(bool isChecked)
|
||||
std::vector<RimEclipseCase*> selectedEclipseCases;
|
||||
caf::SelectionManager::instance()->objectsByType(&selectedEclipseCases);
|
||||
|
||||
RiuSelectionManager::instance()->deleteAllItems();
|
||||
caf::SelectionManager::instance()->clearAll();
|
||||
RiaApplication::clearAllSelections();
|
||||
|
||||
for (RimEclipseCase* selectedCase : selectedEclipseCases)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user