diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-11-07 16:57:58 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-11-07 16:57:58 +0100 |
commit | fd33e7ddeda34f232faf08a79ec834f6bdf3599b (patch) | |
tree | 127f70ffecd1f9cb712fc26b39e7aa19c4a202a4 | |
parent | b7827c13d823c9ac82d8187e09c4c043e72755d2 (diff) | |
download | gnome-settings-daemon-fd33e7ddeda34f232faf08a79ec834f6bdf3599b.tar.gz |
media-keys: Fix 2nd MPRIS client never being used
1. Start MPRIS client, press key, works
2. Close MPRIS client, press key, (/) pops up
3. Start same MPRIS client as 1., press key, (/) pops up
That's because we never unset "connecting" to FALSE once we were
already connected to the MPRIS D-Bus proxy.
-rw-r--r-- | plugins/media-keys/mpris-controller.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/media-keys/mpris-controller.c b/plugins/media-keys/mpris-controller.c index 0e6622e4..f525b0bd 100644 --- a/plugins/media-keys/mpris-controller.c +++ b/plugins/media-keys/mpris-controller.c @@ -105,6 +105,8 @@ mpris_proxy_ready_cb (GObject *object, if (!priv->mpris_client_proxy) g_warning ("Error connecting to mpris interface %s", error->message); + priv->connecting = FALSE; + g_clear_error (&error); } |