equal
deleted
inserted
replaced
660 ui.pageScheme->selectScheme->setCurrentIndex(ui.pageOptions->SchemesName->currentIndex()); |
660 ui.pageScheme->selectScheme->setCurrentIndex(ui.pageOptions->SchemesName->currentIndex()); |
661 if (ui.pageOptions->SchemesName->currentIndex() < ammoSchemeModel->numberOfDefaultSchemes) { |
661 if (ui.pageOptions->SchemesName->currentIndex() < ammoSchemeModel->numberOfDefaultSchemes) { |
662 QMessageBox::warning(0, QMessageBox::tr("Schemes"), QMessageBox::tr("Can not delete default scheme '%1'!").arg(ui.pageOptions->SchemesName->currentText())); |
662 QMessageBox::warning(0, QMessageBox::tr("Schemes"), QMessageBox::tr("Can not delete default scheme '%1'!").arg(ui.pageOptions->SchemesName->currentText())); |
663 } else { |
663 } else { |
664 ui.pageScheme->deleteRow(); |
664 ui.pageScheme->deleteRow(); |
|
665 ammoSchemeModel->Save(); |
665 } |
666 } |
666 } |
667 } |
667 |
668 |
668 void HWForm::DeleteWeaponSet() |
669 void HWForm::DeleteWeaponSet() |
669 { |
670 { |