QTfrontend/ui/widget/qpushbuttonwithsound.cpp
branchphysfslayer
changeset 8049 133e22b5c410
parent 7794 ab7b94c03bc9
child 8326 023a71940f26
equal deleted inserted replaced
8046:4d3415927d2c 8049:133e22b5c410
    34 void QPushButtonWithSound::buttonClicked()
    34 void QPushButtonWithSound::buttonClicked()
    35 {
    35 {
    36     if ( !isSoundEnabled || !HWForm::config->isFrontendSoundEnabled())
    36     if ( !isSoundEnabled || !HWForm::config->isFrontendSoundEnabled())
    37         return;
    37         return;
    38 
    38 
    39     DataManager & dataMgr = DataManager::instance();
       
    40 
       
    41     if (this->isEnabled())
    39     if (this->isEnabled())
    42         SDLInteraction::instance().playSoundFile(dataMgr.findFileForRead("Sounds/roperelease.ogg"));
    40         SDLInteraction::instance().playSoundFile("/Sounds/roperelease.ogg");
    43 }
    41 }