Skip to content

Commit

Permalink
Ticket #3172: WListbox: fix of add item to the empty list.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
szaszg authored and aborodin committed Feb 18, 2014
1 parent 69b5cf5 commit 2b6e440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/widget/listbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ static inline void
listbox_append_item (WListbox * l, WLEntry * e, listbox_append_t pos)
{
if (l->list == NULL)
{
l->list = g_queue_new ();
pos = LISTBOX_APPEND_AT_END;
}

switch (pos)
{
Expand Down

0 comments on commit 2b6e440

Please sign in to comment.