Fix tab text update when file name changes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20729 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-04 10:16:06 +00:00
parent d8ad05cc1a
commit 9271a64edd

View 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)));
}