]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix activation of queue pulser
authorjstebbins <jstebbins.hb@gmail.com>
Thu, 2 Apr 2015 18:54:34 +0000 (18:54 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Thu, 2 Apr 2015 18:54:34 +0000 (18:54 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7042 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/callbacks.c

index 21d8f5c9f242c5e2520c01d98739ca39413e825b..e81bf21a597e41e031418f353f9d6e6ad3f982f0 100644 (file)
@@ -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);
         }