--- a/QTfrontend/ui/widget/gamecfgwidget.cpp Fri Feb 21 13:31:16 2014 +0400
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp Sun Feb 23 10:06:58 2014 -0500
@@ -445,6 +445,7 @@
}
if (param == "SCRIPT")
{
+ pMapContainer->setScript(value);
Scripts->setCurrentIndex(Scripts->findText(value));
return;
}
@@ -644,6 +645,14 @@
WeaponsName->setEnabled(true);
bindEntries->setEnabled(true);
}
+ if (!index)
+ {
+ pMapContainer->setScript(QString(""));
+ }
+ else
+ {
+ pMapContainer->setScript(name);
+ }
emit paramChanged("SCRIPT", QStringList(name));
}