Mercurial > octave
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