]> git.lyx.org Git - features.git/commitdiff
Fix tab text update when file name changes.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 4 Oct 2007 10:16:06 +0000 (10:16 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 4 Oct 2007 10:16:06 +0000 (10:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20729 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 6aa66d9bd23e7aabe62cc566f2d9cf498b8fdb0d..fc091ed73a5e8b6898987716f983277b9b5da6c5 100644 (file)
@@ -584,6 +584,9 @@ void GuiViewBase::setWindowTitle(docstring const & t, docstring const & it)
                QMainWindow::setWindowTitle(new_title);
                QMainWindow::setWindowIconText(toqstr(it));
        }
+       if (Buffer const * buf = buffer())
+               d.tab_widget_->setTabText(d.tab_widget_->currentIndex(),
+                       toqstr(makeDisplayPath(buf->fileName(), 30)));
 }