From 478e58dfa2406ecfd0cedff810f9914b66fe0816 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 26 Jun 2014 10:09:11 +0400 Subject: [PATCH] (listbox_event): clarify check whether listbox is empty. Signed-off-by: Andrew Borodin --- lib/widget/listbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/listbox.c b/lib/widget/listbox.c index b8cc901cb..7ce4b9c6b 100644 --- a/lib/widget/listbox.c +++ b/lib/widget/listbox.c @@ -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)