From 0422422caf36823b73b03c51eef1e6c56953e9d7 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 28 Nov 2009 00:52:08 +0000 Subject: [PATCH] Fix bug #2179: GuiErrorList resets to first item. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32222 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiErrorList.cpp | 5 +++-- src/frontends/qt4/GuiErrorList.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index 3afc679628..f104cd2ffb 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -55,7 +55,7 @@ GuiErrorList::GuiErrorList(GuiView & lv) void GuiErrorList::showEvent(QShowEvent * e) { select(); - updateContents(); + paramsToDialog(); e->accept(); } @@ -77,7 +77,7 @@ void GuiErrorList::viewLog() } -void GuiErrorList::updateContents() +void GuiErrorList::paramsToDialog() { setTitle(toqstr(name_)); errorsLW->clear(); @@ -111,6 +111,7 @@ bool GuiErrorList::initialiseParams(string const & data) : &bufferview()->buffer(); name_ = bformat(_("%1$s Errors (%2$s)"), _(error_type), from_utf8(buf->absFileName())); + paramsToDialog(); return true; } diff --git a/src/frontends/qt4/GuiErrorList.h b/src/frontends/qt4/GuiErrorList.h index 7bbf4a1f03..b36255a150 100644 --- a/src/frontends/qt4/GuiErrorList.h +++ b/src/frontends/qt4/GuiErrorList.h @@ -37,8 +37,8 @@ public Q_SLOTS: private: /// void showEvent(QShowEvent *); - /// update contents - void updateContents(); + /// + void paramsToDialog(); /// bool isBufferDependent() const { return true; } ///