ui: Use the correct key for 'UPnP enabled' option
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 17 Feb 2011 12:39:10 +0000 (14:39 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 17 Feb 2011 23:47:15 +0000 (01:47 +0200)
src/ui/rygel-writable-user-config.vala

index 6b2fd84..18cb193 100644 (file)
@@ -168,7 +168,7 @@ public class Rygel.WritableUserConfig : Rygel.UserConfig {
                 this.set_bool ("general", UPNP_ENABLED_KEY, true);
             } else {
                 // Stop service only if already running
-                if (this.get_enabled ("general")) {
+                if (this.get_upnp_enabled ()) {
                     // Create proxy to Rygel
                     DBusInterface rygel_proxy = Bus.get_proxy_sync
                                         (BusType.SESSION,