fixed and enabled removing of game scheme from options page
authorHenek
Mon, 20 Dec 2010 02:00:22 +0100
changeset 4576 d85062310790
parent 4574 e26ef1eca20a
child 4578 f3cf226fad16
fixed and enabled removing of game scheme from options page
QTfrontend/hwform.cpp
QTfrontend/pages.cpp
--- a/QTfrontend/hwform.cpp	Mon Dec 20 01:08:46 2010 +0100
+++ b/QTfrontend/hwform.cpp	Mon Dec 20 02:00:22 2010 +0100
@@ -662,6 +662,7 @@
         QMessageBox::warning(0, QMessageBox::tr("Schemes"), QMessageBox::tr("Can not delete default scheme '%1'!").arg(ui.pageOptions->SchemesName->currentText()));
     } else {
         ui.pageScheme->deleteRow();
+        ammoSchemeModel->Save();
     }
 }
 
--- a/QTfrontend/pages.cpp	Mon Dec 20 01:08:46 2010 +0100
+++ b/QTfrontend/pages.cpp	Mon Dec 20 02:00:22 2010 +0100
@@ -563,7 +563,6 @@
             SchemeDelete->setIconSize(pmDelete.size());
             SchemeDelete->setIcon(pmDelete);
             SchemeDelete->setMaximumWidth(pmDelete.width() + 6);
-            SchemeDelete->setEnabled(false);
             WeaponsLayout->addWidget(SchemeDelete, 1, 4);
 
             QLabel* WeaponLabel = new QLabel(groupWeapons);