Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle removal of top level items in StandardItemIconLoader
The rowsAboutToBeRemoved signal from the model provides a parent index, but with QStandardItemModel, top level items are added to an invisible root item that doesn't have a valid index. This causes the range check to miss top level items due to a perceived parent mismatch. When the load completes, it attempts to access an object that has been deleted.
- Loading branch information