mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-27 08:47:00 -06:00
(#501) Always displaying well log curve creation commands in the context menu
The command feature system handles enabled/disabled state.
This commit is contained in:
parent
ef87f63b63
commit
be29a06883
@ -215,7 +215,12 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
||||
// TODO: Handle selection through mouse events outside this method, or after ray picking above
|
||||
caf::SelectionManager::instance()->setSelectedItem(wellPath);
|
||||
RiaApplication::instance()->project()->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Well log curve creation commands
|
||||
{
|
||||
RicNewWellLogFileCurveFeature* newWellLogFileCurveFeature = dynamic_cast<RicNewWellLogFileCurveFeature*>(caf::CmdFeatureManager::instance()->getCommandFeature("RicNewWellLogFileCurveFeature"));
|
||||
CVF_ASSERT(newWellLogFileCurveFeature);
|
||||
|
||||
@ -226,8 +231,6 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
||||
|
||||
menu.addAction(newExtractionCurveFeature->action());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// View Link commands
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user