]> git.lyx.org Git - features.git/commitdiff
Fix http://bugzilla.lyx.org/show_bug.cgi?id=5409
authorAbdelrazak Younes <younes@lyx.org>
Tue, 28 Oct 2008 06:46:27 +0000 (06:46 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 28 Oct 2008 06:46:27 +0000 (06:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27162 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/TocWidget.cpp

index d3211f31a007185bcc2a9b43a0f8516d29b2a4e2..cf9f1ac59f19de89711e28b7cfb100b0540dca39 100644 (file)
@@ -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