Mercurial > octave
diff libgui/src/m-editor/file-editor-tab.cc @ 27053:1bdfd2b523c9
use tab icon for indicating a modified editor file (bug #56158)
* file-editor-tab.cc (update_window_title): emit file name changed signal
with new boolean parameter indicating modification state
* file-editor-tab.h: signal file_name_changed has new boolean parameter
* file-editor.cc (handle_file_name_changed): new boolean parameter indicating
modification state, set document-save icon to the tab if file is modified;
(add_file_editor_tab): Updated signal connection sue to new parameter
* file-editor.h: signal slot handle_file_name_changed with new parameter
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Thu, 18 Apr 2019 21:14:39 +0200 |
parents | 8408acb7ca4f |
children | 9326c2258e60 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc Wed Apr 17 20:35:52 2019 +0000 +++ b/libgui/src/m-editor/file-editor-tab.cc Thu Apr 18 21:14:39 2019 +0200 @@ -1641,10 +1641,7 @@ } } - if (modified) - emit file_name_changed (title.prepend ("* "), tooltip); - else - emit file_name_changed (title, tooltip); + emit file_name_changed (title, tooltip, modified); } void file_editor_tab::handle_copy_available (bool enableCopy)