--- 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