From b8cdbc7be8d3dd1017ce1ad22a4d8221fcf9bc50 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 3 Mar 2011 13:57:46 +0000 Subject: [PATCH] Partial fix for bug #7330 (No error notification with 'View master document') With this patch, the bug is fixed when export-in-thread is disabled. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37842 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiErrorList.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index b3ab09f79f..6be1a6307d 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -119,11 +119,12 @@ void GuiErrorList::paramsToDialog() ErrorList const & GuiErrorList::errorList() const { - if (&bufferview()->buffer() == buf_) { - error_list_ = from_master_ ? - bufferview()->buffer().masterBuffer()->errorList(error_type_) - : bufferview()->buffer().errorList(error_type_); - } + Buffer const * buffer = from_master_ + ? bufferview()->buffer().masterBuffer() + : &bufferview()->buffer(); + if (buffer == buf_) + error_list_ = buffer->errorList(error_type_); + return error_list_; } @@ -159,10 +160,6 @@ bool GuiErrorList::goTo(int item) if (err.par_id == -1) return false; - if (from_master_) - // FIXME: implement - return false; - DocIterator dit = buf_->getParFromID(err.par_id); if (dit == doc_iterator_end(buf_)) { -- 2.39.2