Commit 534d669f authored by Jonathan Wilkes's avatar Jonathan Wilkes

fix #505: Canceling in the "Do you want to save" dialog doesn't work

parent 66277599
...@@ -1058,7 +1058,7 @@ function canvas_menuclose_callback(cid_for_dialog, cid, force) { ...@@ -1058,7 +1058,7 @@ function canvas_menuclose_callback(cid_for_dialog, cid, force) {
w.canvas_events.close_without_saving(cid, force); w.canvas_events.close_without_saving(cid, force);
}; };
cancel_button.onclick = function() { cancel_button.onclick = function() {
w.close_save_dialog(); w.canvas_events.close_save_dialog();
w.canvas_events[w.canvas_events.get_previous_state()](); w.canvas_events[w.canvas_events.get_previous_state()]();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment