diff --git a/src/gui/widgets/FloatModelEditorBase.cpp b/src/gui/widgets/FloatModelEditorBase.cpp index 72b033cb6d4..dd6be89583e 100644 --- a/src/gui/widgets/FloatModelEditorBase.cpp +++ b/src/gui/widgets/FloatModelEditorBase.cpp @@ -443,15 +443,11 @@ QString FloatModelEditorBase::displayValue() const ConfigManager::inst()->value("app", "displaydbfs").toInt()) { auto const valueToVolumeRatio = model()->getRoundedValue() / volumeRatio(); - if (valueToVolumeRatio == 0.) - { - return m_description.trimmed() + QString(" -∞ dBFS"); - } - else - { - return m_description.trimmed() + QString(" %1 dBFS"). - arg(ampToDbfs(valueToVolumeRatio), 3, 'f', 2); - } + return m_description.trimmed() + ( + valueToVolumeRatio == 0. + ? QString(" -∞ dBFS") + : QString(" %1 dBFS").arg(ampToDbfs(valueToVolumeRatio), 3, 'f', 2) + ); } return m_description.trimmed() + QString(" %1").