diff libgui/src/m-editor/file-editor-tab.cc @ 29468:46def32e6806

do not allow full path in editor tabs * gui-preferences-ed.h: remove preferences for long tab titles, min. and max. width of tabs * file-editor-tab.cc (update_window_title): always use file name for title; (notice_settings): remove setting the related class variable * file-editor-tab.h: remove class variable for long tab titles * file-editor.cc (notice_settings): remove code for style sheet with min. and max. width * settings-dialog.cc (settings_dialog): do not initialize removed items; (write_changed_settings): remove storing vlaues of obsolete items * settings-dialog.ui: remove all items related to long titles with min. and max. width
author Torsten Lilge <ttl-octave@mailbox.org>
date Mon, 29 Mar 2021 07:54:26 +0200
parents c0f86150aa6c
children 5384bb4efc51
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Sun Mar 28 22:55:08 2021 +0200
+++ b/libgui/src/m-editor/file-editor-tab.cc	Mon Mar 29 07:54:26 2021 +0200
@@ -1632,14 +1632,9 @@
       title = tr ("<unnamed>");
     else
       {
-        if (m_long_title)
-          title = m_file_name;
-        else
-          {
-            QFileInfo file (m_file_name);
-            title = file.fileName ();
-            tooltip = m_file_name;
-          }
+        QFileInfo file (m_file_name);
+        title = file.fileName ();
+        tooltip = m_file_name;
       }
 
     emit file_name_changed (title, tooltip, modified);
@@ -2730,7 +2725,6 @@
     m_edit_area->SendScintilla (QsciScintillaBase::SCI_SETSCROLLWIDTH,-1);
     m_edit_area->SendScintilla (QsciScintillaBase::SCI_SETSCROLLWIDTHTRACKING,true);
 
-    m_long_title = settings->value (ed_long_window_title).toBool ();
     update_window_title (m_edit_area->isModified ());
 
     m_auto_endif = settings->value (ed_auto_endif).toInt ();