Fix bug #7709. Seems we need to reset the source model here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40310 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-11-29 19:54:48 +00:00
parent c64258aace
commit 936cee5b9f
2 changed files with 3 additions and 0 deletions

View File

@ -189,6 +189,7 @@ void TocModel::reset(Toc const & toc)
} }
model_->setHeaderData(0, Qt::Horizontal, QVariant("title"), Qt::DisplayRole); model_->setHeaderData(0, Qt::Horizontal, QVariant("title"), Qt::DisplayRole);
sorted_model_->setSourceModel(model_);
if (is_sorted_) if (is_sorted_)
sorted_model_->sort(0); sorted_model_->sort(0);
model_->blockSignals(false); model_->blockSignals(false);

View File

@ -49,6 +49,8 @@ What's new
* USER INTERFACE * USER INTERFACE
- Fixed crash when changing label when outliner is open and sorted (bug 7709).
- Update citation labels when the BibTeX file changes (bug 7499). - Update citation labels when the BibTeX file changes (bug 7499).
- Unify diplay of theorem headings (bug 7883). - Unify diplay of theorem headings (bug 7883).