diff options
| author | Peter Penz <[email protected]> | 2012-02-21 17:18:37 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-02-21 17:20:27 +0100 |
| commit | bdd0fdf2460232fe17b0e54e42fcda4cc18b811a (patch) | |
| tree | 843b7afd77f59a286b35e31bad32445500c45b8d | |
| parent | 2db0cca5cf898c0328a079f7071ccdbc8e728029 (diff) | |
Fix possible crash if no model is set
When updating the siblings-information by e.g. a call to
setSupportsItemExpanding() it is possible that the model is not
set yet.
| -rw-r--r-- | src/kitemviews/kitemlistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index 372726954..907bf624d 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -2057,7 +2057,7 @@ void KItemListView::updateGroupHeaderHeight() void KItemListView::updateSiblingsInformation(int firstIndex, int lastIndex) { - if (!supportsItemExpanding()) { + if (!supportsItemExpanding() || !m_model) { return; } |
