From 936cee5b9fc8233781d7046de44b7fbfa791cff0 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 29 Nov 2011 19:54:48 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/TocModel.cpp | 1 + status.20x | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/frontends/qt4/TocModel.cpp b/src/frontends/qt4/TocModel.cpp index 508f333da8..baf8b8ccf6 100644 --- a/src/frontends/qt4/TocModel.cpp +++ b/src/frontends/qt4/TocModel.cpp @@ -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); diff --git a/status.20x b/status.20x index 415ece382d..ae9b356ed1 100644 --- a/status.20x +++ b/status.20x @@ -49,6 +49,8 @@ What's new * 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). - Unify diplay of theorem headings (bug 7883).