diff -r d32b5fde9ea6 -r 4218782d8ca0 QTfrontend/ui/widget/qpushbuttonwithsound.cpp --- a/QTfrontend/ui/widget/qpushbuttonwithsound.cpp Tue Jan 17 23:36:15 2012 +0100 +++ b/QTfrontend/ui/widget/qpushbuttonwithsound.cpp Tue Jan 17 23:42:30 2012 +0100 @@ -8,14 +8,15 @@ #include QPushButtonWithSound::QPushButtonWithSound(QWidget *parent) : - QPushButton(parent) + QPushButton(parent), + isSoundEnabled(true) { connect(this, SIGNAL(clicked()), this, SLOT(buttonClicked())); } void QPushButtonWithSound::buttonClicked() { - if (!HWForm::config->isFrontendSoundEnabled()) + if ( !isSoundEnabled || !HWForm::config->isFrontendSoundEnabled()) return; HWDataManager & dataMgr = HWDataManager::instance();