sel event in detail pos 0 fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 8 Aug 2004 07:05:58 +0000 (07:05 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 8 Aug 2004 07:05:58 +0000 (07:05 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@676 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/detailedevents/events.c

index 38030ba879e5ead8c042f8ab2c32f650ee58ba13..074dc3bb091b710c44cf103784847aefab2195ad 100644 (file)
@@ -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;
+          }
         }
       }
     }
This page took 0.024736 seconds and 4 git commands to generate.