Prevent display of meaningless internal buffer title(s) to the user

(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
This commit is contained in:
Tommaso Cucinotta 2010-01-07 19:54:42 +00:00
parent e674f6bdc6
commit 3f1c690723

View File

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