]> cloud.milkyroute.net Git - dolphin.git/commit
Fix possible crash in KFileItemModel::slotRefreshItems()
authorFrank Reininghaus <frank78ac@googlemail.com>
Sat, 10 Sep 2011 19:55:27 +0000 (21:55 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sat, 10 Sep 2011 19:55:27 +0000 (21:55 +0200)
commit93b4d607279df05d46b1d3badc073c88fe262762
tree1eb24ce96ea9e7980fca6255f909a5e373f017f9
parentff243261742ecd70fb9e417614e757b5956c04aa
Fix possible crash in KFileItemModel::slotRefreshItems()

If the changed items have been created recently, they might not be in
m_items yet.  In that case, the list 'indexes' might be empty, which
leads to a crash later on (I saw the crash in KFileItemModel's unit
test).
src/kitemviews/kfileitemmodel.cpp