From: compudj Date: Sun, 8 Aug 2004 07:05:58 +0000 (+0000) Subject: sel event in detail pos 0 fix X-Git-Tag: v0.12.20~2813 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=edcb621eadedb252842d28511c051a4621a40987;p=lttv.git sel event in detail pos 0 fix git-svn-id: http://ltt.polymtl.ca/svn@676 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 38030ba8..074dc3bb 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -1454,13 +1454,18 @@ gboolean update_current_time(void * hook_data, void * call_data) /* Event is before the list */ } else { /* Event can be in the list */ - while(gtk_tree_model_iter_next(model, &iter)) { - gtk_tree_model_get(model, &iter, TIME_COLUMN, &time, -1); - count++; - if(time >= nsec){ - /* found */ - event_shown = TRUE; - break; + if(time >= nsec){ + /* found */ + event_shown = TRUE; + } else { + while(gtk_tree_model_iter_next(model, &iter)) { + gtk_tree_model_get(model, &iter, TIME_COLUMN, &time, -1); + count++; + if(time >= nsec){ + /* found */ + event_shown = TRUE; + break; + } } } }