diff options
author | jstebbins <[email protected]> | 2008-09-25 20:16:35 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-25 20:16:35 +0000 |
commit | 93d596cf40b94e928b81cb4720ce77ab49d4ea9f (patch) | |
tree | 083cddac48541c7ad023414be90bc60d9b22e3d0 /gtk/src/callbacks.c | |
parent | 8593c0d23cf4824b8a1cb70f392897e5c04c72ff (diff) |
LinGui: fix del key handling on queue item. Was deleting when any key pressed
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1766 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 7b8896e26..76edda6fd 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -4565,6 +4565,8 @@ gboolean queue_key_press_cb( gint status; g_debug("queue_key_press_cb ()"); + if (event->keyval != GDK_Delete) + return FALSE; treeview = GTK_TREE_VIEW(GHB_WIDGET(ud->builder, "queue_list")); store = gtk_tree_view_get_model(treeview); @@ -4590,7 +4592,7 @@ gboolean queue_key_press_cb( // Ask if wants to stop encode. if (!cancel_encode(NULL)) { - return FALSE; + return TRUE; } unique_id = ghb_settings_get_int(settings, "job_unique_id"); ghb_remove_job(unique_id); @@ -4602,6 +4604,7 @@ gboolean queue_key_press_cb( ghb_value_free(old); ghb_array_remove(ud->queue, row); ghb_save_queue(ud->queue); + return TRUE; } return FALSE; } |