mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Fix bug #7709. Seems we need to reset the source model here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40245 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
05194fa79b
commit
6e6f036f03
@ -189,6 +189,7 @@ void TocModel::reset(Toc const & toc)
|
||||
}
|
||||
|
||||
model_->setHeaderData(0, Qt::Horizontal, QVariant("title"), Qt::DisplayRole);
|
||||
sorted_model_->setSourceModel(model_);
|
||||
if (is_sorted_)
|
||||
sorted_model_->sort(0);
|
||||
model_->blockSignals(false);
|
||||
|
Loading…
Reference in New Issue
Block a user