Revert the change from list to map as it breaks the automatic addition of newly
authorAndreas Pakulat <apaku@gmx.de>
Fri, 27 Jul 2007 15:36:26 +0000 (15:36 -0000)
committerAndreas Pakulat <apaku@gmx.de>
Fri, 27 Jul 2007 15:36:26 +0000 (15:36 -0000)
commit5e8db470f8148ce369ae5d632844c5b935c1b733
tree8199abbfc1319816662bcd23c29a10cf0c4aaff2
parenta79538c9e6cce4fb246b6151d88dfbf98b51c662
Revert the change from list to map as it breaks the automatic addition of newly
created files to the filetree. I don't know why that breaks (as it should be
handled by KFileTreeView from kdelibs), but I don't have the time to
investigate.

Instead I changed all contains() calls to findIndex, contains always iterates
the whole list, because it does actually a count(), findIndex should speed
things up considerably.

If it doesn't speed up enough, please re-open the bugreport and provide a patch
that doesn't break the automatic addition of new files to the tree

CCBUG: 148229
parts/fileview/filetreewidget.cpp
parts/fileview/filetreewidget.h
parts/fileview/stdfiletreewidgetimpl.cpp
parts/fileview/vcsfiletreewidgetimpl.cpp