fix clicking 'ok' in edit item dialog

This commit is contained in:
2025-09-04 13:07:55 -05:00
parent faa5be2feb
commit 567681a5a3

View File

@@ -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)));