]> git.lyx.org Git - features.git/commitdiff
Prevent display of meaningless internal buffer title(s) to the user
authorTommaso Cucinotta <tommaso@lyx.org>
Thu, 7 Jan 2010 19:54:42 +0000 (19:54 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Thu, 7 Jan 2010 19:54:42 +0000 (19:54 +0000)
(e.g., while entering text to find in the F&R WA, window title keeps
showing the filename of the document where matches are searched for).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32858 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index f0232b21330f47d094d7409a0db432034c8ac7f3..32ddfdc2302af260894c5417687e8db6478d0206 100644 (file)
@@ -759,7 +759,8 @@ void GuiView::clearMessage()
 
 void GuiView::updateWindowTitle(GuiWorkArea * wa)
 {
-       if (wa != d.current_work_area_)
+       if (wa != d.current_work_area_
+           || wa->bufferView().buffer().isInternal())
                return;
        setWindowTitle(qt_("LyX: ") + wa->windowTitle());
        setWindowIconText(wa->windowIconText());