fix clicking 'ok' in edit item dialog
All checks were successful
CI / linux (push) Successful in 12m23s

This commit is contained in:
2025-09-04 13:07:55 -05:00
committed by Celtic Minstrel
parent 843349db3a
commit 419a36ac9c

View File

@@ -1897,6 +1897,7 @@ static bool edit_item_type_event_filter(cDialog& me, std::string hit, cItem& ite
} }
if(commit_changes){ if(commit_changes){
temp_item = item;
// We actually can't make the action undoable while the dialog is still open // We actually can't make the action undoable while the dialog is still open
if(is_new){ if(is_new){
undo_list.add(action_ptr(new aCreateDeleteItem(true, temp_item))); undo_list.add(action_ptr(new aCreateDeleteItem(true, temp_item)));