diff options
| author | Peter Penz <[email protected]> | 2012-05-02 21:23:38 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-02 21:24:16 +0200 |
| commit | f158bf097a079cba181afa9ecc03e5eb20f3573a (patch) | |
| tree | f7780c7a2366a42745b4de0cabfde23e92a3f321 /src/kitemviews/kitemlistview.cpp | |
| parent | d76b113ad10fe207ef23d5dd44c63ee076c71521 (diff) | |
Places Panel: Fix implementation issues when hiding items
Diffstat (limited to 'src/kitemviews/kitemlistview.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index 2177c6296..a3fc2bafc 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -1049,6 +1049,12 @@ void KItemListView::slotItemsRemoved(const KItemRangeList& itemRanges) } } + // In case if the first item of a group has been removed, the group header + // must be applied to the next visible item. + if (m_grouped && index < m_model->count()) { + updateGroupHeaderForWidget(m_visibleItems.value(index)); + } + if (!hasMultipleRanges) { // The decrease-layout-size optimization in KItemListView::slotItemsInserted() // assumes an updated geometry. If items are removed during an active transaction, |
