Small code clean-up.
This commit is contained in:
parent
2434ba73f2
commit
de228da9c5
@ -250,19 +250,19 @@ AboutDialog::~AboutDialog(void)
|
|||||||
|
|
||||||
int AboutDialog::exec()
|
int AboutDialog::exec()
|
||||||
{
|
{
|
||||||
if(m_settings->soundsEnabled())
|
if(m_firstStart)
|
||||||
{
|
{
|
||||||
if(m_firstStart)
|
if (m_settings->soundsEnabled())
|
||||||
{
|
{
|
||||||
if(!MUtils::Sound::play_sound_file("imageres.dll", 5080, true))
|
if (!MUtils::Sound::play_sound_file("imageres.dll", 5080, true))
|
||||||
{
|
{
|
||||||
MUtils::Sound::play_system_sound("SystemStart", true);
|
MUtils::Sound::play_system_sound("SystemStart", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
PLAY_SOUND_OPTIONAL("ghost", true);
|
{
|
||||||
}
|
PLAY_SOUND_OPTIONAL("ghost", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(QDialog::exec())
|
switch(QDialog::exec())
|
||||||
@ -331,10 +331,7 @@ void AboutDialog::tabChanged(int index, const bool silent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Play tick sound
|
//Play tick sound
|
||||||
if(m_settings->soundsEnabled() && (!silent))
|
PLAY_SOUND_OPTIONAL("tick", true);
|
||||||
{
|
|
||||||
PLAY_SOUND_OPTIONAL("tick", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Scroll to the top
|
//Scroll to the top
|
||||||
if(QWidget *tab = ui->tabWidget->widget(index))
|
if(QWidget *tab = ui->tabWidget->widget(index))
|
||||||
|
Loading…
Reference in New Issue
Block a user