QTfrontend/ui/widget/gamecfgwidget.cpp
changeset 7794 ab7b94c03bc9
parent 7771 ce6d4dd0c780
child 8092 08960209db8c
child 8377 869f80966a77
--- a/QTfrontend/ui/widget/gamecfgwidget.cpp	Tue Oct 23 05:21:44 2012 +0200
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp	Tue Oct 23 06:50:19 2012 +0200
@@ -270,7 +270,14 @@
 {
     bool illegal = ammo.size() != cDefaultAmmoStore->size();
     if (illegal)
-        QMessageBox::critical(this, tr("Error"), tr("Illegal ammo scheme"));
+    {
+        QMessageBox illegalMsg(this);
+        illegalMsg.setIcon(QMessageBox::Warning);
+        illegalMsg.setWindowTitle(QMessageBox::tr("Error"));
+        illegalMsg.setText(QMessageBox::tr("Cannot use the ammo '%1'!").arg(name));
+        illegalMsg.setWindowModality(Qt::WindowModal);
+        illegalMsg.exec();
+    }
 
     int pos = WeaponsName->findText(name);
     if ((pos == -1) || illegal)   // prevent from overriding schemes with bad ones