From ee6efd55a11a82334063321f2e1d6a813ccd8aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 2 Jan 2023 10:20:15 +0100 Subject: [PATCH] Replay Gain Preferences: Fix the "adjust by" text in case of negative adjustments --- src/preferences/dialog/dlgprefreplaygain.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/preferences/dialog/dlgprefreplaygain.cpp b/src/preferences/dialog/dlgprefreplaygain.cpp index 60204421920..3e2f50febf9 100644 --- a/src/preferences/dialog/dlgprefreplaygain.cpp +++ b/src/preferences/dialog/dlgprefreplaygain.cpp @@ -150,11 +150,10 @@ void DlgPrefReplayGain::slotUpdateReplayGainBoost() { void DlgPrefReplayGain::setLabelCurrentReplayGainBoost(int value) { LabelCurrentReplayGainBoost->setText( - QString(tr("%1 LUFS (adjust by %2 dB)")).arg( - QString::number(value + kReplayGainReferenceLUFS), - (value < 0) ? QString() : (QString("+") + QString::number(value)) - ) - ); + QString(tr("%1 LUFS (adjust by %2 dB)")) + .arg(QString::number(value + kReplayGainReferenceLUFS), + (value < 0 ? QString() : QString("+")) + + QString::number(value))); } void DlgPrefReplayGain::slotUpdateDefaultBoost() {