]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.C
* support/filetools.C (makeDisplayPath): if the file is in the lyx
[features.git] / src / frontends / qt4 / GuiView.C
index c6c68b9a295a9fbbd1efc0fca7089510c56780f4..43cd3fca0f2cc12d09f82d9e3366b42bb674a279 100644 (file)
@@ -64,9 +64,8 @@ using std::vector;
 namespace lyx {
 
 using support::FileName;
-using support::onlyFilename;
-using support::subst;
 using support::libFileSearch;
+using support::makeDisplayPath;
 
 namespace frontend {
 
@@ -512,7 +511,7 @@ void GuiView::updateTab()
        // rebuild tabbar and function map from scratch
        if (names.size() > 1) {
                for(size_t i = 0; i < names.size(); i++) {
-                       tabbar.addTab(toqstr(onlyFilename(names[i]))); 
+                       tabbar.addTab(toqstr(makeDisplayPath(names[i], 30))); 
                        // set current tab
                        if (names[i] == cur_title)
                                tabbar.setCurrentIndex(i);