move a loc to where it's useful.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25293 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-17 15:49:14 +00:00
parent 81bc06db34
commit cd877a3919

View 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);
}