QTfrontend/gameuiconfig.cpp
changeset 2216 82e7da49c26a
parent 2101 3d2eaaf3b4bf
child 2261 57e99c908e7c
--- a/QTfrontend/gameuiconfig.cpp	Tue Jun 30 15:59:02 2009 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Tue Jun 30 17:02:41 2009 +0000
@@ -46,8 +46,8 @@
 
 	Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool());
 	Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects);
-	Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
-	Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool());
+	Form->ui.pageOptions->CBEnableSound->setChecked(openal_ready() && value("audio/sound", true).toBool());
+	Form->ui.pageOptions->CBEnableMusic->setChecked(openal_ready() && value("audio/music", true).toBool());
 	Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt());
 
 	Form->ui.pageOptions->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString());