From: Abdelrazak Younes Date: Tue, 28 Oct 2008 06:46:27 +0000 (+0000) Subject: Fix http://bugzilla.lyx.org/show_bug.cgi?id=5409 X-Git-Tag: 1.6.10~2805 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0b0f0942c09b442d24534d12eac51ce9a7dd1965;p=features.git 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 --- 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