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