Fixed enabled/disabled handling for two command features

RicImportEclipseCaseFeature and RicImportInputEclipseCaseFeature should
always be enabled. They don't need a command UI item selection.
This commit is contained in:
Pål Hagen 2015-08-24 13:41:13 +02:00
parent bef4fe453f
commit 2a41e427f2
2 changed files with 2 additions and 8 deletions

View File

@ -35,10 +35,7 @@ CAF_CMD_SOURCE_INIT(RicImportEclipseCaseFeature, "RicImportEclipseCaseFeature");
//--------------------------------------------------------------------------------------------------
bool RicImportEclipseCaseFeature::isCommandEnabled()
{
std::vector<RimEclipseCaseCollection*> selection;
caf::SelectionManager::instance()->objectsByType(&selection);
return selection.size() > 0;
return true;
}
//--------------------------------------------------------------------------------------------------

View File

@ -35,10 +35,7 @@ CAF_CMD_SOURCE_INIT(RicImportInputEclipseCaseFeature, "RicImportInputEclipseCase
//--------------------------------------------------------------------------------------------------
bool RicImportInputEclipseCaseFeature::isCommandEnabled()
{
std::vector<RimEclipseCaseCollection*> selection;
caf::SelectionManager::instance()->objectsByType(&selection);
return selection.size() > 0;
return true;
}
//--------------------------------------------------------------------------------------------------