From 8f085fead803de7584c03b255c7932c3ec1aaf9b Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Tue, 5 Nov 2019 09:25:35 +0100 Subject: [PATCH] Make "Import Property" menu item available on RimEclipseInputCase. --- .../EclipseCommands/RicAddEclipseInputPropertyFeature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/EclipseCommands/RicAddEclipseInputPropertyFeature.cpp b/ApplicationCode/Commands/EclipseCommands/RicAddEclipseInputPropertyFeature.cpp index 28c7f78518..e45a6d70e9 100644 --- a/ApplicationCode/Commands/EclipseCommands/RicAddEclipseInputPropertyFeature.cpp +++ b/ApplicationCode/Commands/EclipseCommands/RicAddEclipseInputPropertyFeature.cpp @@ -41,6 +41,7 @@ CAF_CMD_SOURCE_INIT( RicAddEclipseInputPropertyFeature, "RicAddEclipseInputPrope bool RicAddEclipseInputPropertyFeature::isCommandEnabled() { return caf::SelectionManager::instance()->selectedItemOfType() || + caf::SelectionManager::instance()->selectedItemOfType() || caf::SelectionManager::instance()->selectedItemOfType(); } @@ -55,7 +56,7 @@ void RicAddEclipseInputPropertyFeature::onActionTriggered( bool isChecked ) caf::SelectionManager::instance()->selectedItemOfType(); if ( !inputPropertyCollection ) { - // No property collection selected: triggered from RimEclipseResultCase. + // No property collection selected: triggered from RimEclipseInputCase/RimEclipseResultCase. eclipseCase = caf::SelectionManager::instance()->selectedItemOfType(); if ( eclipseCase ) {