QTfrontend/gameuiconfig.cpp
changeset 1129 b74ffca22762
parent 1066 1f1b3686a2b0
child 1162 91bf5e3e558d
--- a/QTfrontend/gameuiconfig.cpp	Sun Jul 27 22:09:40 2008 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Sun Jul 27 22:14:43 2008 +0000
@@ -40,6 +40,7 @@
 	Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
 
 	Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
+	Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool());
 
 	Form->ui.pageOptions->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString());
 
@@ -77,6 +78,7 @@
 	setValue("video/fullscreen", vid_Fullscreen());
 
 	setValue("audio/sound", isSoundEnabled());
+	setValue("audio/music", isMusicEnabled());
 
 	setValue("net/nick", netNick());
 	setValue("net/ip", *netHost);
@@ -115,6 +117,11 @@
 	return Form->ui.pageOptions->CBEnableSound->isChecked();
 }
 
+bool GameUIConfig::isMusicEnabled()
+{
+	return Form->ui.pageOptions->CBEnableMusic->isChecked();
+}
+
 bool GameUIConfig::isShowFPSEnabled()
 {
 	return Form->ui.pageOptions->CBShowFPS->isChecked();