QTfrontend/ui/widget/qpushbuttonwithsound.cpp
changeset 8326 023a71940f26
parent 8049 133e22b5c410
child 9080 9b42757d7e71
equal deleted inserted replaced
8325:ecd51650d5d8 8326:023a71940f26
    31     connect(this, SIGNAL(clicked()), this, SLOT(buttonClicked()));
    31     connect(this, SIGNAL(clicked()), this, SLOT(buttonClicked()));
    32 }
    32 }
    33 
    33 
    34 void QPushButtonWithSound::buttonClicked()
    34 void QPushButtonWithSound::buttonClicked()
    35 {
    35 {
    36     if ( !isSoundEnabled || !HWForm::config->isFrontendSoundEnabled())
    36     if ( !isSoundEnabled )
    37         return;
    37         return;
    38 
    38 
    39     if (this->isEnabled())
    39     if (this->isEnabled())
    40         SDLInteraction::instance().playSoundFile("/Sounds/roperelease.ogg");
    40         SDLInteraction::instance().playSoundFile("/Sounds/roperelease.ogg");
    41 }
    41 }