run idle function just once
authorVladimir Nadvornik <nadvornik@suse.cz>
Mon, 9 Jun 2008 19:43:56 +0000 (19:43 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Mon, 9 Jun 2008 19:43:56 +0000 (19:43 +0000)
src/view_file_list.c

index dacf363..3015ada 100644 (file)
@@ -1926,7 +1926,7 @@ static void vflist_notify_cb(FileData *fd, NotifyType type, gpointer data)
                        }
                }
        
-       if (refresh)
+       if (refresh && vf->refresh_idle_id == -1)
                {
                vf->refresh_idle_id = g_idle_add(vflist_refresh_idle_cb, vf);
                }