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.
This commit is contained in:
Peter Penz 2012-02-21 17:18:37 +01:00
parent 2db0cca5cf
commit bdd0fdf246

View file

@ -2057,7 +2057,7 @@ void KItemListView::updateGroupHeaderHeight()
void KItemListView::updateSiblingsInformation(int firstIndex, int lastIndex)
{
if (!supportsItemExpanding()) {
if (!supportsItemExpanding() || !m_model) {
return;
}