diff options
author | jstebbins <[email protected]> | 2010-02-22 16:28:07 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-02-22 16:28:07 +0000 |
commit | b1b9be20c1efd855723109051cacdf9e307f996f (patch) | |
tree | 2091f89baad8c220cdf8bc76dca79cc9feabd39d /gtk/src | |
parent | 47c5c042c8853ea72729f2add8a663aa9d48cf3a (diff) |
LinGui: fix stupid preset import bug
after importing, save it to the preset file instead of just holding it
in memory
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3133 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/presets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 88e3e4e9c..d83038796 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -3242,7 +3242,6 @@ preset_import_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) return; } array = ghb_plist_parse_file(filename); - g_free(filename); import_xlat_presets(array); presets_clear_default(array); @@ -3292,8 +3291,10 @@ preset_import_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) ghb_settings_set_string(ud->settings, "ExportDirectory", dir); ghb_pref_save(ud->settings, "ExportDirectory"); } + g_free(filename); g_free(exportDir); g_free(dir); + store_presets(); } gtk_widget_destroy(dialog); } |