mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
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:
parent
81bc06db34
commit
cd877a3919
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user