diff --git a/src/frontends/qt/GuiErrorList.cpp b/src/frontends/qt/GuiErrorList.cpp index 703c7150a3..68e6a3e7eb 100644 --- a/src/frontends/qt/GuiErrorList.cpp +++ b/src/frontends/qt/GuiErrorList.cpp @@ -161,22 +161,21 @@ bool GuiErrorList::initialiseParams(string const & sdata) } -bool GuiErrorList::goTo(int item) +void GuiErrorList::goTo(int item) { ErrorItem const & err = errorList()[item]; if (TexRow::isNone(err.start)) - return false; + return; Buffer const * errbuf = err.buffer ? err.buffer : buf_; if (&buffer() != errbuf) { if (!theBufferList().isLoaded(errbuf)) - return false; + return; FuncRequest fr(LFUN_BUFFER_SWITCH, errbuf->absFileName()); dispatch(fr); } dispatch(TexRow::goToFunc(err.start, err.end)); - return true; } diff --git a/src/frontends/qt/GuiErrorList.h b/src/frontends/qt/GuiErrorList.h index bc84888253..cc20ac9d73 100644 --- a/src/frontends/qt/GuiErrorList.h +++ b/src/frontends/qt/GuiErrorList.h @@ -50,8 +50,8 @@ private: /// bool canApply() const override { return true; } - /// goto this error in the parent bv. Returns success. - bool goTo(int item); + /// goto this error in the parent bv. + void goTo(int item); /// ErrorList const & errorList() const; private: