[vlc-devel] commit: qt4: selector: switch source on single click (Jakob Leben )

Jean-Baptiste Kempf jb at videolan.org
Mon Sep 7 10:27:48 CEST 2009


On Mon, Sep 07, 2009 at 09:56:26AM +0200, Jakob Leben wrote :
> Because when reacting to single-clicks, the function will be called also for
> the "Libraries"  item, and that one doesn't have the TYPE_ROLE set, so
> item->data(0, TYPE_ROLE) will return QVariant(), and doing toInt() on
> "empty" QVariant will return 0, which will be interpreted as PL_ITEM.
> Instead, nothing should happen when clicking (or activating...) the
> "Libraries" item, which is only a "directory", or a node, if you want...

OK, got you :D


Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list