In AboutDialog::tabChanged(), do not play the tick sound, if 'silent' flag is set.

Fixes regression introduced in de228da9c5.
This commit is contained in:
LoRd_MuldeR 2021-02-19 00:19:25 +01:00
parent b9fc279c1a
commit 952f0a91d4
2 changed files with 6 additions and 3 deletions

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 9
#define VER_LAMEXP_TYPE RC
#define VER_LAMEXP_PATCH 3
#define VER_LAMEXP_BUILD 2294
#define VER_LAMEXP_BUILD 2295
#define VER_LAMEXP_CONFG 2188
///////////////////////////////////////////////////////////////////////////////

View File

@ -331,8 +331,11 @@ void AboutDialog::tabChanged(int index, const bool silent)
qApp->restoreOverrideCursor();
}
//Play tick sound
PLAY_SOUND_OPTIONAL("tick", true);
//Play tick sound, unless silent
if (!silent)
{
PLAY_SOUND_OPTIONAL("tick", true);
}
//Scroll to the top
if(QWidget *tab = ui->tabWidget->widget(index))