Improve CmdFeature base class

Add default implementation of isEnabled() and add const
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2023-06-26 14:28:46 +02:00
1 parent 59ca0b943c
commit 1da509166a
786 files changed
+638 -1857

No files matched your search

@@ -39,7 +39,7 @@ CAF_CMD_SOURCE_INIT( RicNewSummaryMultiPlotFeature, "RicNewSummaryMultiPlotFeatu
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicNewSummaryMultiPlotFeature::isCommandEnabled()
bool RicNewSummaryMultiPlotFeature::isCommandEnabled() const
{
std::vector<caf::PdmUiItem*> selectedUiItems;
caf::SelectionManager::instance()->selectedItems( selectedUiItems );