summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-05-14 16:58:20 +0000
committerjstebbins <[email protected]>2014-05-14 16:58:20 +0000
commitebb2651ca57744741810e870e3762f1ada2959e6 (patch)
tree7b1e9ef3b85f02bfb9b67a43f74cba36fc750f4a /gtk/src/callbacks.c
parent075f395197c3f68ecd9fd36be6a0112ecb6c945c (diff)
LinGui: add preference option to remove completed queue jobs from queue
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6188 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 9d28532ee..192061c57 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -3244,6 +3244,11 @@ ghb_backend_events(signal_user_data_t *ud)
ud->job_activity_log = NULL;
if (js)
ghb_settings_set_int(js, "job_status", qstatus);
+ if (ghb_settings_get_boolean(ud->prefs, "RemoveFinishedJobs") &&
+ status.queue.error == GHB_ERROR_NONE)
+ {
+ ghb_queue_remove_row(ud, index);
+ }
if (ud->cancel_encode != GHB_CANCEL_ALL &&
ud->cancel_encode != GHB_CANCEL_FINISH)
{