Mercurial > hg > octave-nkf
changeset 15981:e3873531dd7c
gui: correct tab title for new editor file if short title setting is selected
* file-editor-tab.cc (update_window_title): display "unnamed" in tab title
of a new file even if short title format is selected in the settings
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 27 Jan 2013 15:50:49 +0100 |
parents | 6c0fce0632a4 |
children | 131d40cd805b |
files | libgui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -661,11 +661,14 @@ if (_file_name.isEmpty () || _file_name.at (_file_name.count () - 1) == '/') title = UNNAMED_FILE; else - title = _file_name; - if ( !_long_title ) { - QFileInfo file(_file_name); - title = file.fileName(); + if ( _long_title ) + title = _file_name; + else + { + QFileInfo file(_file_name); + title = file.fileName(); + } } if ( modified )