VCS: add GUI notification

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28304 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-01-31 18:17:36 +00:00
parent 7ff5bd4c54
commit 50f4601c20

View File

@ -1181,8 +1181,12 @@ void GuiWorkArea::updateWindowTitle()
if (!fileName.empty()) {
maximize_title = fileName.displayName(30);
minimize_title = from_utf8(fileName.onlyFileName());
if (buf.lyxvc().inUse())
maximize_title += _(" (version control)");
if (buf.lyxvc().inUse()) {
if (buf.lyxvc().locker().empty())
maximize_title += _(" (version control)");
else
maximize_title += _(" (version control, locking)");
}
if (!buf.isClean()) {
maximize_title += _(" (changed)");
minimize_title += char_type('*');