QTfrontend/hwform.cpp
changeset 1235 070629f3902d
parent 1225 f882a92ef872
child 1268 34c3795ecb63
--- a/QTfrontend/hwform.cpp	Mon Aug 25 18:30:06 2008 +0000
+++ b/QTfrontend/hwform.cpp	Fri Aug 29 19:40:37 2008 +0000
@@ -27,6 +27,7 @@
 #include <QRadioButton>
 #include <QSpinBox>
 #include <QCloseEvent>
+#include <QCheckBox>
 
 #include "hwform.h"
 #include "game.h"
@@ -131,8 +132,6 @@
 		this, SLOT(GoBack())); // executed third
 
 	GoToPage(ID_PAGE_MAIN);
-
-	sdli.StartMusic();
 }
 
 void HWForm::onFrontendFullscreen(bool value)
@@ -688,3 +687,11 @@
 	config->SaveOptions();
 	event->accept();
 }
+
+void HWForm::Music(bool checked)
+{
+	if (checked)
+		sdli.StartMusic();
+	else
+		sdli.StopMusic();
+}