QTfrontend/gamecfgwidget.cpp
changeset 4709 c224bfb5d41c
parent 4584 66bc6e45be83
child 4720 a9f9c96db60c
--- a/QTfrontend/gamecfgwidget.cpp	Sun Dec 26 16:56:33 2010 -0500
+++ b/QTfrontend/gamecfgwidget.cpp	Sun Dec 26 23:18:43 2010 +0100
@@ -52,7 +52,7 @@
     Scripts = new QComboBox(GBoxOptions);
     GBoxOptionsLayout->addWidget(Scripts, 0, 1);
 
-    Scripts->addItem(QComboBox::tr("Normal"));
+    Scripts->addItem("Normal");
     Scripts->insertSeparator(1);
 
     for (int i = 0; i < scriptList->size(); ++i) {
@@ -383,7 +383,7 @@
 
 void GameCFGWidget::mapChanged(const QString & value)
 {
-    if(pMapContainer->getCurrentIsMission())
+    if(isEnabled() && pMapContainer->getCurrentIsMission())
     {
         Scripts->setEnabled(false);
         Scripts->setCurrentIndex(0);
@@ -458,7 +458,7 @@
 
     emit paramChanged("SCHEME", sl);
 
-    if (bindEntries->isEnabled() && bindEntries->isChecked()) {
+    if (isEnabled() && bindEntries->isEnabled() && bindEntries->isChecked()) {
         QString schemeName = GameSchemes->itemText(index);
         for (int i = 0; i < WeaponsName->count(); i++) {
              QString weapName = WeaponsName->itemText(i);
@@ -474,7 +474,7 @@
 
 void GameCFGWidget::scriptChanged(int index)
 {
-    if(index > 0)
+    if(isEnabled() && index > 0)
     {
         QString scheme = Scripts->itemData(Scripts->currentIndex()).toList()[1].toString();
         QString weapons = Scripts->itemData(Scripts->currentIndex()).toList()[2].toString();