Frontend:
authorsmxx
Wed, 17 Mar 2010 11:02:08 +0000
changeset 3010 3aa3675d97eb
parent 3009 8f4e6de8e4ef
child 3011 73c8f618fd8b
Frontend: * Fixed scheme selection (dang!)
QTfrontend/gamecfgwidget.cpp
--- 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));
 }