]> git.lyx.org Git - features.git/commitdiff
Fix bug #2179: GuiErrorList resets to first item.
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 28 Nov 2009 00:52:08 +0000 (00:52 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 28 Nov 2009 00:52:08 +0000 (00:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32222 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiErrorList.cpp
src/frontends/qt4/GuiErrorList.h

index 3afc6796280b4f181b1dc23adaa01faf197d53da..f104cd2ffba1461ff9213a1ff6d639fe4b6aafc4 100644 (file)
@@ -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;
 }
 
index 7bbf4a1f03d4e2da9bdf112efef51588c06a7931..b36255a150aa879422632e87f6f9810b7d6b0aed 100644 (file)
@@ -37,8 +37,8 @@ public Q_SLOTS:
 private:
        ///
        void showEvent(QShowEvent *);
-       /// update contents
-       void updateContents();
+       ///
+       void paramsToDialog();
        ///
        bool isBufferDependent() const { return true; }
        ///