Re: TreeView - First element



It works.
Thank You.

2010/1/5 Daniel Elstner <daniel kitta googlemail com>
Hi,

Am Dienstag, den 05.01.2010, 05:44 -0800 schrieb Adam Chyla [PL]:
> It should works.
>
> Try this: http://chyla.site90.net/gtk_foobar-0.1.tar.gz

You were simply not testing whether the position after the selected item
is actually valid.  The corrected code is attached.

Note that I used operator bool() instead of comparing against the end()
iterator, but I did so only for convenience.  Either way works.

Cheers,
--Daniel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]