]> cloud.milkyroute.net Git - dolphin.git/commit
Two small optimizations in KFileItemModel::removeItems()
authorFrank Reininghaus <frank78ac@googlemail.com>
Sun, 3 Feb 2013 22:28:57 +0000 (23:28 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 3 Feb 2013 22:28:57 +0000 (23:28 +0100)
commit687d5145a25b99255065035ec63f3a29c711367d
tree8226b3eacdbb7e14331b8bb9041b4a8a41e0915f
parent01dc86f0dfdfe9b27c228d7f0c39c1b6585ccbe9
Two small optimizations in KFileItemModel::removeItems()

1. It seems that it really can happen that KFileItems that we get from
   the dir lister's itemsDeleted signal are not in the model any more,
   e.g., if a folder where hidden files are shown is left and a folder
   where hidden files are not shown is entered. There is no need to
   output warnings then.
2. Remove the emptiness-check for the KFileItemList at the beginning.
   Even in the unlikely event that we do get an empty list, we return
   just a few lines later in the code.
src/kitemviews/kfileitemmodel.cpp