diff --git a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp index 344fd5632e..8ddc6a65a7 100644 --- a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp +++ b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp @@ -87,13 +87,14 @@ void RicNewWellLogFileCurveFeature::onActionTriggered(bool isChecked) //-------------------------------------------------------------------------------------------------- void RicNewWellLogFileCurveFeature::setupActionLook(QAction* actionToSetup) { + actionToSetup->setIcon(QIcon(":/WellLogCurve16x16.png")); actionToSetup->setText("New Well Log LAS Curve"); } //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- -bool RicNewWellLogFileCurveFeature::wellLogFilesAvailable() const +bool RicNewWellLogFileCurveFeature::wellLogFilesAvailable() { RimProject* project = RiaApplication::instance()->project(); if (project->activeOilField()->wellPathCollection()) @@ -102,7 +103,7 @@ bool RicNewWellLogFileCurveFeature::wellLogFilesAvailable() const for (size_t i = 0; i < wellPaths.size(); i++) { - if (wellPaths[i]->wellLogFiles().size() > 0) + if (!wellPaths[i]->wellLogFiles().empty()) { return true; } diff --git a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.h b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.h index d4ae4353a2..0a686babe4 100644 --- a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.h +++ b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.h @@ -36,5 +36,5 @@ protected: virtual void setupActionLook( QAction* actionToSetup ) override; private: - bool wellLogFilesAvailable() const; + static bool wellLogFilesAvailable(); };