]> git.lyx.org Git - features.git/commitdiff
move a loc to where it's useful.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 17 Jun 2008 15:49:14 +0000 (15:49 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 17 Jun 2008 15:49:14 +0000 (15:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25293 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/TocWidget.cpp

index daa77370a79c268f64d7979684b23bc5ea56462d..9aa2c07b78b7bbe44ed6bc6ad1de1a0350663e95 100644 (file)
@@ -267,8 +267,6 @@ static QString decodeType(QString const & str)
 
 void TocWidget::init(QString const & str)
 {
-       typeCO->blockSignals(true);
-
        int new_index;
        if (str.isEmpty())
                new_index = typeCO->findData(current_type_);
@@ -282,6 +280,7 @@ void TocWidget::init(QString const & str)
                new_index = typeCO->findData(current_type_);
        }
 
+       typeCO->blockSignals(true);
        typeCO->setCurrentIndex(new_index);
        typeCO->blockSignals(false);
 }