diff libgui/src/m-editor/file-editor.h @ 27651:c9ebcb9050b4

fix broken storing of editor session data at shutdown * file-editor-tab.cc (closeEvent): do not emit ready to close signal here; (check_modified_file): but here when closing was not canceled or file is not modified (do_save_file): and here after having saved the file * file-editor.cc (check_closing): store number of tabs and connect their signals for being ready to close with the related slot, if closing was canceled, disconnect these signals; (handle_tab_ready_to_close): immediately return from this slot when closing was canceled
author Torsten Lilge <ttl-octave@mailbox.org>
date Thu, 07 Nov 2019 10:03:25 +0100
parents a18081db8fa3
children 5169ed0ff0f0
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h	Wed Nov 06 18:18:51 2019 -0800
+++ b/libgui/src/m-editor/file-editor.h	Thu Nov 07 10:03:25 2019 +0100
@@ -448,6 +448,7 @@
 
     int m_marker_breakpoint;
 
+    bool m_closing_canceled;
     bool m_closed;
     bool m_no_focus;