# HG changeset patch # User Torsten # Date 1359298249 -3600 # Node ID e3873531dd7c63a66cb2e07a2652bf3132b412dd # Parent 6c0fce0632a4f0d1ba3d3a43db5bd090b1116b12 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 diff -r 6c0fce0632a4 -r e3873531dd7c libgui/src/m-editor/file-editor-tab.cc --- a/libgui/src/m-editor/file-editor-tab.cc Sat Jan 26 20:33:46 2013 +0100 +++ b/libgui/src/m-editor/file-editor-tab.cc Sun Jan 27 15:50:49 2013 +0100 @@ -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 )