mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Merge branch '3172_listbox_append_item_fix'
* 3172_listbox_append_item_fix: Ticket #3172: WListbox: fix of add item to the empty list.
This commit is contained in:
commit
b3787781a7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user