aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-04-28 13:00:49 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-04-28 13:00:49 +0000
commit8824568b728fc308fcdb7f66d9d385bb76dbe925 (patch)
tree1e62862847461a8ece2c72ed33f496cf6fdf1b66 /gtk
parent4674b866bcb3c16aa37e80272bbf47e30e57fca1 (diff)
Reopen the recent file when reading older common settings.
This will be optimized later. svn path=/trunk/; revision=25187
Diffstat (limited to 'gtk')
-rw-r--r--gtk/recent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/recent.c b/gtk/recent.c
index f30556239f..fd680b45ab 100644
--- a/gtk/recent.c
+++ b/gtk/recent.c
@@ -802,7 +802,9 @@ recent_read_profile_static(char **rf_path_return, int *rf_errno_return)
if ((rf = eth_fopen(rf_path, "r")) != NULL) {
/* We succeeded in opening it; read it. */
read_prefs_file(rf_path, rf, read_set_recent_pair_static, NULL);
+ fclose(rf);
/* Read older common settings, in case we come from an older version */
+ rf = eth_fopen(rf_path, "r");
read_prefs_file(rf_path, rf, read_set_recent_common_pair_static, NULL);
fclose(rf);
g_free(rf_path);