QTfrontend/pages.cpp
changeset 2216 82e7da49c26a
parent 2194 1597710c6118
child 2261 57e99c908e7c
--- a/QTfrontend/pages.cpp	Tue Jun 30 15:59:02 2009 +0000
+++ b/QTfrontend/pages.cpp	Tue Jun 30 17:02:41 2009 +0000
@@ -195,6 +195,7 @@
 		}
 		hbox->addWidget(CBVoicepack, 100);
 		BtnTestSound = addButton(":/res/PlaySound.png", hbox, 1, true);
+		BtnTestSound->setEnabled(openal_ready());
 		hbox->setStretchFactor(BtnTestSound, 1);
 		connect(BtnTestSound, SIGNAL(clicked()), this, SLOT(testSound()));
 		GBTLayout->addLayout(hbox);
@@ -425,10 +426,12 @@
 
 		CBEnableSound = new QCheckBox(AGGroupBox);
 		CBEnableSound->setText(QCheckBox::tr("Enable sound"));
+		CBEnableSound->setEnabled(openal_ready());
 		GBAlayout->addWidget(CBEnableSound);
 
 		CBEnableMusic = new QCheckBox(AGGroupBox);
 		CBEnableMusic->setText(QCheckBox::tr("Enable music"));
+		CBEnableMusic->setEnabled(openal_ready());
 		GBAlayout->addWidget(CBEnableMusic);
 
 		QHBoxLayout * GBAvollayout = new QHBoxLayout(0);
@@ -439,6 +442,7 @@
 		volumeBox = new QSpinBox(AGGroupBox);
 		volumeBox->setRange(0, 100);
 		volumeBox->setSingleStep(5);
+		volumeBox->setEnabled(openal_ready());
 		GBAvollayout->addWidget(volumeBox);