QTfrontend/gamecfgwidget.cpp
changeset 1531 f404233b6d9b
parent 1530 3b8d723661b2
child 1532 e77b2ed67431
--- a/QTfrontend/gamecfgwidget.cpp	Fri Dec 05 16:49:04 2008 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Fri Dec 05 16:55:20 2008 +0000
@@ -81,7 +81,7 @@
 	connect(CB_mode_Forts, SIGNAL(toggled(bool)), this, SIGNAL(fortsModeChanged(bool)));
 	connect(CB_teamsDivide, SIGNAL(toggled(bool)), this, SIGNAL(teamsDivideChanged(bool)));
 	connect(CB_solid, SIGNAL(toggled(bool)), this, SIGNAL(solidChanged(bool)));
-	connect(WeaponsName, SIGNAL(activated(const QString&)), this, SIGNAL(newWeaponsName(const QString&)));
+	connect(WeaponsName, SIGNAL(currentIndexChanged(int)), this, SLOT(ammoChanged(int)));
 
 	connect(pMapContainer, SIGNAL(seedChanged(const QString &)), this, SIGNAL(seedChanged(const QString &)));
 	connect(pMapContainer, SIGNAL(mapChanged(const QString &)), this, SIGNAL(mapChanged(const QString &)));
@@ -194,3 +194,8 @@
 		WeaponsName->setCurrentIndex(pos);
 	}
 }
+
+void GameCFGWidget::ammoChanged(int index)
+{
+	emit newWeaponScheme(WeaponsName->itemText(index), WeaponsName->itemData(index).toString());
+}
\ No newline at end of file