QTfrontend/selectWeapon.cpp
changeset 725 a7a8eef5bbb6
parent 724 21706280d913
child 883 07a568ba44e0
--- a/QTfrontend/selectWeapon.cpp	Sun Jan 20 13:51:22 2008 +0000
+++ b/QTfrontend/selectWeapon.cpp	Sun Jan 20 14:05:55 2008 +0000
@@ -116,6 +116,11 @@
 
 void SelWeaponWidget::save()
 {
+  if (m_name->text()=="Default") {
+    QMessageBox impossible(QMessageBox::Warning, QMessageBox::tr("Weapons"), QMessageBox::tr("Can not edit default weapon set"));
+    impossible.exec();
+    return;
+  }
   if (m_name->text()=="") return;
   currentState="";
   for(int i=0; i<m_numItems; ++i) {