]> git.lyx.org Git - features.git/commitdiff
Fix bug #7709. Seems we need to reset the source model here.
authorRichard Heck <rgheck@comcast.net>
Tue, 29 Nov 2011 19:54:48 +0000 (19:54 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 29 Nov 2011 19:54:48 +0000 (19:54 +0000)
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
status.20x

index 508f333da8038b7b600360261a0d9fe00ce73f3b..baf8b8ccf65b3545ebe808dbf40d6070bad2dfad 100644 (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);
index 415ece382d567fb46af18fa24ff3ed63e939ac56..ae9b356ed127e020eeb5df4f216b94654afa1833 100644 (file)
@@ -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).