mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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:
parent
2db0cca5cf
commit
bdd0fdf246
|
@ -2057,7 +2057,7 @@ void KItemListView::updateGroupHeaderHeight()
|
|||
|
||||
void KItemListView::updateSiblingsInformation(int firstIndex, int lastIndex)
|
||||
{
|
||||
if (!supportsItemExpanding()) {
|
||||
if (!supportsItemExpanding() || !m_model) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue