mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make "Import Property" menu item available on RimEclipseInputCase.
This commit is contained in:
parent
f1e987f0b9
commit
8f085fead8
@ -41,6 +41,7 @@ CAF_CMD_SOURCE_INIT( RicAddEclipseInputPropertyFeature, "RicAddEclipseInputPrope
|
|||||||
bool RicAddEclipseInputPropertyFeature::isCommandEnabled()
|
bool RicAddEclipseInputPropertyFeature::isCommandEnabled()
|
||||||
{
|
{
|
||||||
return caf::SelectionManager::instance()->selectedItemOfType<RimEclipseInputPropertyCollection>() ||
|
return caf::SelectionManager::instance()->selectedItemOfType<RimEclipseInputPropertyCollection>() ||
|
||||||
|
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseInputCase>() ||
|
||||||
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseResultCase>();
|
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseResultCase>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,7 +56,7 @@ void RicAddEclipseInputPropertyFeature::onActionTriggered( bool isChecked )
|
|||||||
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseInputPropertyCollection>();
|
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseInputPropertyCollection>();
|
||||||
if ( !inputPropertyCollection )
|
if ( !inputPropertyCollection )
|
||||||
{
|
{
|
||||||
// No property collection selected: triggered from RimEclipseResultCase.
|
// No property collection selected: triggered from RimEclipseInputCase/RimEclipseResultCase.
|
||||||
eclipseCase = caf::SelectionManager::instance()->selectedItemOfType<RimEclipseCase>();
|
eclipseCase = caf::SelectionManager::instance()->selectedItemOfType<RimEclipseCase>();
|
||||||
if ( eclipseCase )
|
if ( eclipseCase )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user