QTfrontend/ui/widget/gamecfgwidget.cpp
changeset 12900 a9e4e8fa852c
parent 12813 d6c75b27db58
child 13197 0bc5f618ca7c
equal deleted inserted replaced
12899:2bcd3f48ddd0 12900:a9e4e8fa852c
   375     if (illegal)
   375     if (illegal)
   376     {
   376     {
   377         QMessageBox illegalMsg(parentWidget());
   377         QMessageBox illegalMsg(parentWidget());
   378         illegalMsg.setIcon(QMessageBox::Warning);
   378         illegalMsg.setIcon(QMessageBox::Warning);
   379         illegalMsg.setWindowTitle(QMessageBox::tr("Error"));
   379         illegalMsg.setWindowTitle(QMessageBox::tr("Error"));
   380         illegalMsg.setText(QMessageBox::tr("Cannot use the ammo '%1'!").arg(name));
   380         illegalMsg.setText(QMessageBox::tr("Cannot use the weapon scheme '%1'!").arg(name));
   381         illegalMsg.setWindowModality(Qt::WindowModal);
   381         illegalMsg.setWindowModality(Qt::WindowModal);
   382         illegalMsg.exec();
   382         illegalMsg.exec();
   383     }
   383     }
   384 
   384 
   385     int pos = WeaponsName->findText(name);
   385     int pos = WeaponsName->findText(name);