Fix both update_tree_view() and traverseUpdate_tree()
commit5d076b4455eace043f8c010b200700de33d1b7d2
authorPlamen Petrov <pvp@tk.ru.acad.bg>
Sun, 17 Feb 2008 21:11:49 +0000 (17 23:11 +0200)
committerPlamen Petrov <pvp@tk.ru.acad.bg>
Sun, 17 Feb 2008 21:11:49 +0000 (17 23:11 +0200)
tree9bd0498130f767fbab4ba4993445a1cb583208ea
parentb032a962871061aea2d983f4a651b3d611056e2a
Fix both update_tree_view() and traverseUpdate_tree()

    A new private var is added for kmk - tree_needs_update - a bool,
which should indicate that treeListView needs update after an "update".
    update_tree_view() was depending on specific data ordering - this fixes
that, and now there is only one corner case where it may complain: if any
of the TREE_BASEs are last in the file, there could be missing folders in
the tree view. Even then, there is a qWarning() issued, advising a re-scan.
    traverseUpdate_tree() is now near a working state, but maybe it should
try harder to imitate its parent - traverse_tree() - by remembering which
is the last added item... This should happen in a later patch.
src/kmk.cpp
src/kmk.h