QTfrontend/pageeditteam.cpp
changeset 5886 a4a620f68b22
parent 5549 ccfb9b8ab9d1
child 5907 64ccc6be0ec5
equal deleted inserted replaced
5885:ae257409bcff 5886:a4a620f68b22
   356     Mix_Chunk *sound;
   356     Mix_Chunk *sound;
   357     QDir tmpdir;
   357     QDir tmpdir;
   358     mySdli->SDLMusicInit();
   358     mySdli->SDLMusicInit();
   359     
   359     
   360     tmpdir.cd(cfgdir->absolutePath());
   360     tmpdir.cd(cfgdir->absolutePath());
   361     tmpdir.cd("Data/Sounds/voices");
   361     if (!tmpdir.cd("Data/Sounds/voices/"+CBVoicepack->currentText()))
   362     tmpdir.cd(CBVoicepack->currentText());
   362     {
   363     
       
   364     if (!tmpdir.exists()) {
       
   365         tmpdir.cd(datadir->absolutePath());
   363         tmpdir.cd(datadir->absolutePath());
   366         tmpdir.cd("Sounds/voices");
   364         tmpdir.cd("Sounds/voices");
   367         tmpdir.cd(CBVoicepack->currentText());
   365         tmpdir.cd(CBVoicepack->currentText());
   368     }
   366     }
   369 
   367