fix clicking 'ok' in edit item dialog
This commit is contained in:
@@ -1899,6 +1899,7 @@ static bool edit_item_type_event_filter(cDialog& me, std::string hit, cItem& ite
|
||||
}
|
||||
|
||||
if(commit_changes){
|
||||
temp_item = item;
|
||||
// We actually can't make the action undoable while the dialog is still open
|
||||
if(is_new){
|
||||
undo_list.add(action_ptr(new aCreateDeleteItem(true, temp_item)));
|
||||
|
Reference in New Issue
Block a user