mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
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:
parent
d8ad05cc1a
commit
9271a64edd
@ -584,6 +584,9 @@ void GuiViewBase::setWindowTitle(docstring const & t, docstring const & it)
|
|||||||
QMainWindow::setWindowTitle(new_title);
|
QMainWindow::setWindowTitle(new_title);
|
||||||
QMainWindow::setWindowIconText(toqstr(it));
|
QMainWindow::setWindowIconText(toqstr(it));
|
||||||
}
|
}
|
||||||
|
if (Buffer const * buf = buffer())
|
||||||
|
d.tab_widget_->setTabText(d.tab_widget_->currentIndex(),
|
||||||
|
toqstr(makeDisplayPath(buf->fileName(), 30)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user