fix voice preview
authornemo
Tue, 13 Sep 2011 00:32:41 -0400
changeset 5886 a4a620f68b22
parent 5885 ae257409bcff
child 5887 7d69b76ce923
fix voice preview
QTfrontend/pageeditteam.cpp
--- a/QTfrontend/pageeditteam.cpp	Tue Sep 13 00:13:01 2011 -0400
+++ b/QTfrontend/pageeditteam.cpp	Tue Sep 13 00:32:41 2011 -0400
@@ -358,10 +358,8 @@
     mySdli->SDLMusicInit();
     
     tmpdir.cd(cfgdir->absolutePath());
-    tmpdir.cd("Data/Sounds/voices");
-    tmpdir.cd(CBVoicepack->currentText());
-    
-    if (!tmpdir.exists()) {
+    if (!tmpdir.cd("Data/Sounds/voices/"+CBVoicepack->currentText()))
+    {
         tmpdir.cd(datadir->absolutePath());
         tmpdir.cd("Sounds/voices");
         tmpdir.cd(CBVoicepack->currentText());