core: Don't lose translations/comments in config
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 24 Jun 2009 15:47:40 +0000 (18:47 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 3 Jul 2009 21:44:58 +0000 (00:44 +0300)
src/rygel/rygel-user-config.vala

index c38801c..25f6a9c 100644 (file)
@@ -133,7 +133,8 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
         this.key_file.load_from_dirs (CONFIG_FILE,
                                       dirs,
                                       out this.path,
-                                      KeyFileFlags.NONE);
+                                      KeyFileFlags.KEEP_COMMENTS |
+                                      KeyFileFlags.KEEP_TRANSLATIONS);
         debug ("Loaded user configuration from file '%s'", this.path);
 
         DBus.Connection connection = DBus.Bus.get (DBus.BusType.SESSION);