QTfrontend/ui/widget/gamecfgwidget.cpp
changeset 14857 b9437746bffb
parent 14831 583d8b96fb30
child 15666 3997d85b3d2e
equal deleted inserted replaced
14856:57ed3981db20 14857:b9437746bffb
   401     {
   401     {
   402         QMessageBox illegalMsg(parentWidget());
   402         QMessageBox illegalMsg(parentWidget());
   403         illegalMsg.setIcon(QMessageBox::Warning);
   403         illegalMsg.setIcon(QMessageBox::Warning);
   404         illegalMsg.setWindowTitle(QMessageBox::tr("Error"));
   404         illegalMsg.setWindowTitle(QMessageBox::tr("Error"));
   405         illegalMsg.setText(QMessageBox::tr("Cannot use the weapon scheme '%1'!").arg(name));
   405         illegalMsg.setText(QMessageBox::tr("Cannot use the weapon scheme '%1'!").arg(name));
       
   406         illegalMsg.setTextFormat(Qt::PlainText);
   406         illegalMsg.setWindowModality(Qt::WindowModal);
   407         illegalMsg.setWindowModality(Qt::WindowModal);
   407         illegalMsg.exec();
   408         illegalMsg.exec();
   408     }
   409     }
   409 
   410 
   410     int pos = WeaponsName->findText(name);
   411     int pos = WeaponsName->findText(name);