equal
deleted
inserted
replaced
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); |