diff options
author | jstebbins <[email protected]> | 2015-04-02 18:54:34 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-04-02 18:54:34 +0000 |
commit | 67bf9f2137dead1f3a93ed9ff09b9c09ef48d413 (patch) | |
tree | 42c1e593a8f71fd7e73366ec3c513a7564e06956 /gtk | |
parent | ae89af34458ea637651bbc1b7b29fee63408146c (diff) |
LinGui: fix activation of queue pulser
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7042 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 16 |
1 files changed, 9 insertions, 7 deletions
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); } |