From 419a36ac9c799ae45be1141aa19307135ff75aee Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 4 Sep 2025 13:07:55 -0500 Subject: [PATCH] fix clicking 'ok' in edit item dialog --- src/scenedit/scen.core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scenedit/scen.core.cpp b/src/scenedit/scen.core.cpp index c01d01f1c..9cb0c24c8 100644 --- a/src/scenedit/scen.core.cpp +++ b/src/scenedit/scen.core.cpp @@ -1897,6 +1897,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)));