(listbox_event): clarify check whether listbox is empty.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-06-26 10:09:11 +04:00
parent 46651f04d1
commit 478e58dfa2

View File

@ -478,7 +478,7 @@ listbox_event (Gpm_Event * event, void *data)
if ((event->type & GPM_DOWN) != 0)
dlg_select_widget (l);
if (g_queue_is_empty (l->list))
if (listbox_is_empty (l))
return MOU_NORMAL;
if ((event->type & (GPM_DOWN | GPM_DRAG)) != 0)