QTfrontend/hwform.cpp
changeset 1268 34c3795ecb63
parent 1235 070629f3902d
child 1310 4616e15d566f
--- a/QTfrontend/hwform.cpp	Thu Sep 18 20:06:05 2008 +0000
+++ b/QTfrontend/hwform.cpp	Thu Sep 18 21:20:24 2008 +0000
@@ -548,7 +548,7 @@
 {
 	switch(gameState) {
 		case gsStarted: {
-			sdli.StopMusic();
+			Music(false);
 			GoToPage(ID_PAGE_INGAME);
 			ui.pageGameStats->labelGameStats->setText("");
 			if (pRegisterServer)
@@ -560,7 +560,7 @@
 		}
 		case gsFinished: {
 			GoBack();
-			sdli.StartMusic();
+			Music(ui.pageOptions->CBEnableMusic->isChecked());
 			GoToPage(ID_PAGE_GAMESTATS);
 			break;
 		}
@@ -568,7 +568,7 @@
 			quint8 id = ui.Pages->currentIndex();
 			if (id == ID_PAGE_INGAME) {
 				GoBack();
-				sdli.StartMusic();
+				Music(ui.pageOptions->CBEnableMusic->isChecked());
 			}
 		};
 	}