]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix a scanning problem
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 19 Aug 2009 13:31:34 +0000 (13:31 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 19 Aug 2009 13:31:34 +0000 (13:31 +0000)
incorrect source name could get set after ejecting and re-inserting a disc

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2769 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/callbacks.c

index 7a73b7f4c9098f0f44e2b39101861ea518176e31..bd06126b116f83306be431a2b27f0a943d9498c9 100644 (file)
@@ -3457,6 +3457,7 @@ handle_media_change(const gchar *device, gboolean insert, signal_user_data_t *ud
                                update_source_label(ud, device, TRUE);
                                gint preview_count;
                                preview_count = ghb_settings_get_int(ud->settings, "preview_count");
+                               ghb_settings_set_string(ud->settings, "source", device);
                                start_scan(ud, device, 0, preview_count);
                        }
                }
@@ -3560,6 +3561,7 @@ drive_changed_cb(GVolumeMonitor *gvm, GDrive *gd, signal_user_data_t *ud)
                        update_source_label(ud, device, TRUE);
                        gint preview_count;
                        preview_count = ghb_settings_get_int(ud->settings, "preview_count");
+                       ghb_settings_set_string(ud->settings, "source", device);
                        start_scan(ud, device, 0, preview_count);
                }
        }