From 0b0f0942c09b442d24534d12eac51ce9a7dd1965 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 28 Oct 2008 06:46:27 +0000 Subject: [PATCH] Fix http://bugzilla.lyx.org/show_bug.cgi?id=5409 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27162 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/TocWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp index d3211f31a0..cf9f1ac59f 100644 --- a/src/frontends/qt4/TocWidget.cpp +++ b/src/frontends/qt4/TocWidget.cpp @@ -325,11 +325,14 @@ void TocWidget::init(QString const & str) if (new_index == -1) { current_type_ = "tableofcontents"; new_index = typeCO->findData(current_type_); + } else { + current_type_ = typeCO->itemData(new_index).toString(); } typeCO->blockSignals(true); typeCO->setCurrentIndex(new_index); typeCO->blockSignals(false); + updateView(); } } // namespace frontend