Commit b290cc5d authored by mercury233's avatar mercury233

disable btnSaveDeckAs on readonly category

parent 49977194
...@@ -1573,6 +1573,7 @@ void DeckBuilder::RefreshReadonly(int catesel) { ...@@ -1573,6 +1573,7 @@ void DeckBuilder::RefreshReadonly(int catesel) {
bool hasDeck = mainGame->cbDBDecks->getItemCount() != 0; bool hasDeck = mainGame->cbDBDecks->getItemCount() != 0;
readonly = catesel < 2; readonly = catesel < 2;
mainGame->btnSaveDeck->setEnabled(!readonly); mainGame->btnSaveDeck->setEnabled(!readonly);
mainGame->btnSaveDeckAs->setEnabled(!readonly);
mainGame->btnDeleteDeck->setEnabled(hasDeck && !readonly); mainGame->btnDeleteDeck->setEnabled(hasDeck && !readonly);
mainGame->btnRenameCategory->setEnabled(catesel > 3); mainGame->btnRenameCategory->setEnabled(catesel > 3);
mainGame->btnDeleteCategory->setEnabled(catesel > 3); mainGame->btnDeleteCategory->setEnabled(catesel > 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment