--- a/QTfrontend/gamecfgwidget.cpp Wed Mar 17 10:55:12 2010 +0000
+++ b/QTfrontend/gamecfgwidget.cpp Wed Mar 17 11:02:08 2010 +0000
@@ -246,8 +246,18 @@
void GameCFGWidget::mapChanged(const QString & value)
{
- GameSchemes->setEnabled(pMapContainer->getCurrentIsMission());
- WeaponsName->setEnabled(pMapContainer->getCurrentIsMission());
+ if(pMapContainer->getCurrentIsMission())
+ {
+ GameSchemes->setEnabled(false);
+ WeaponsName->setEnabled(false);
+ GameSchemes->setCurrentIndex(GameSchemes->findText("Default"));
+ WeaponsName->setCurrentIndex(WeaponsName->findText("Default"));
+ }
+ else
+ {
+ GameSchemes->setEnabled(true);
+ WeaponsName->setEnabled(true);
+ }
emit paramChanged("MAP", QStringList(value));
}