author | displacer |
Sun, 20 Jan 2008 14:05:55 +0000 | |
changeset 725 | a7a8eef5bbb6 |
parent 724 | 21706280d913 |
child 726 | bbe085d442a8 |
--- 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) {