]> git.lyx.org Git - features.git/commitdiff
Partial fix for bug #7330 (No error notification with 'View master document')
authorEnrico Forestieri <forenr@lyx.org>
Thu, 3 Mar 2011 13:57:46 +0000 (13:57 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 3 Mar 2011 13:57:46 +0000 (13:57 +0000)
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

index b3ab09f79f48662d6d28650f5eedad8ed836bae7..6be1a6307d426ae99ef62af96c0f9120244c290f 100644 (file)
@@ -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_)) {