Selection in cardlist is correctly moved when changes are made;

cuting/copying/pasting/deleting multiple cards now works.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@888 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-30 18:13:56 +00:00
parent 6de54b34fd
commit 674fa1a32a
5 changed files with 41 additions and 30 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ void CardsPanel::onUpdateUI(wxUpdateUIEvent& ev) {
break;
}
case ID_CARD_ADD_MULT: ev.Enable(false); break; // not implemented
case ID_CARD_REMOVE: ev.Enable(set->cards.size() > 1); break;
case ID_CARD_REMOVE: ev.Enable(card_list->canDelete()); break;
case ID_FORMAT_BOLD: case ID_FORMAT_ITALIC: case ID_FORMAT_SYMBOL: case ID_FORMAT_REMINDER: {
if (focused_control(this) == ID_EDITOR) {
ev.Enable(editor->canFormat(ev.GetId()));