summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-08-19 13:31:34 +0000
committerjstebbins <[email protected]>2009-08-19 13:31:34 +0000
commit021ee3721d5d848cac628b5c04aa304e5e2ceb4c (patch)
tree09b31c0967d899b926467d42a0d84c25e31e2ec0
parenteb400c89a2c419b8a886ce25dc4f0de18c515ad0 (diff)
LinGui: fix a scanning problem
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
-rw-r--r--gtk/src/callbacks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 7a73b7f4c..bd06126b1 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -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);
}
}