OSDN Git Service

LinGui: disable the 'Add to Queue' button while scanning.
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 21 Dec 2010 23:52:06 +0000 (23:52 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 21 Dec 2010 23:52:06 +0000 (23:52 +0000)
It's not a good idea try to access title info while the scan is in progress.

git-svn-id: svn://localhost/HandBrake/trunk@3713 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/queuehandler.c

index a9c2300..4a17510 100644 (file)
@@ -1045,6 +1045,11 @@ ghb_queue_buttons_grey(signal_user_data_t *ud)
 
        paused = queue_state & GHB_STATE_PAUSED;
 
+       widget = GHB_WIDGET(ud->builder, "queue_add");
+       gtk_widget_set_sensitive(widget, show_start);
+       action = GHB_ACTION(ud->builder, "queue_add_menu");
+       gtk_action_set_sensitive(action, show_start);
+
        widget = GHB_WIDGET (ud->builder, "queue_start1");
        if (show_stop)
        {