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:
Richard Heck 2011-11-23 16:52:46 +00:00
parent 05194fa79b
commit 6e6f036f03

View File

@ -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);