# HG changeset patch # User displacer # Date 1200837955 0 # Node ID a7a8eef5bbb6df772e03e0bec346c17e8f224e73 # Parent 21706280d913e923044309c4b2bfc151da9ce175 can not save Default weapon set diff -r 21706280d913 -r a7a8eef5bbb6 QTfrontend/selectWeapon.cpp --- 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