]> git.sesse.net Git - vlc/commit
Qt4: correct the check whether item is node
authorJakob Leben <jakob.leben@gmail.com>
Mon, 17 Aug 2009 23:01:40 +0000 (01:01 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 18 Aug 2009 07:40:59 +0000 (10:40 +0300)
commitc06416a2e52db9f2701738fcf0eb15c8717e284c
tree9dc41075e3c32c4bbd32d6edbc27043a9b853701
parent9b4308cbc3aabb4c6606e0dd3832c84a80b2ead2
Qt4: correct the check whether item is node

( PLModel::childrenCount() > 0 ) is not equivalent to (
playlist_item_t*->i_children > -1 ). This patch swaps former for latter
which is a correct strict check wether an item is node.

Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
modules/gui/qt4/components/playlist/playlist_model.cpp