From 67bf9f2137dead1f3a93ed9ff09b9c09ef48d413 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 2 Apr 2015 18:54:34 +0000 Subject: LinGui: fix activation of queue pulser git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7042 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'gtk') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 21d8f5c9f..e81bf21a5 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -3176,19 +3176,21 @@ ghb_backend_events(signal_user_data_t *ud) gchar *path = g_strdup_printf ("%d", index); if (gtk_tree_model_get_iter_from_string(store, &iter, path)) { - if ((status.queue.state & GHB_STATE_WORKDONE) || - (status.queue.state & GHB_STATE_SCANDONE)) - { - gtk_tree_store_set(GTK_TREE_STORE(store), &iter, - 0, FALSE, -1); - } - else if (!(status.queue.state & GHB_STATE_PAUSED)) + if (((status.queue.state & GHB_STATE_WORKING) || + (status.queue.state & GHB_STATE_SCANNING)) && + !(status.queue.state & GHB_STATE_PAUSED)) { gint pulse; gtk_tree_model_get(store, &iter, 4, &pulse, -1); gtk_tree_store_set(GTK_TREE_STORE(store), &iter, 4, pulse+1, -1); } + else if ((status.queue.state & GHB_STATE_WORKDONE) || + (status.queue.state & GHB_STATE_SCANDONE)) + { + gtk_tree_store_set(GTK_TREE_STORE(store), &iter, + 0, FALSE, -1); + } } g_free(path); } -- cgit v1.2.3