[rhythmbox] audioscrobbler: stop scrobbling when user logs out of account



commit 21cddf9e047ba32a3c172c6ece10621b8405f59a
Author: Jamie Nicol <jamie thenicols net>
Date:   Sat May 29 13:32:33 2010 +0100

    audioscrobbler: stop scrobbling when user logs out of account

 plugins/audioscrobbler/rb-audioscrobbler-account.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-account.c b/plugins/audioscrobbler/rb-audioscrobbler-account.c
index 13e4b91..4bbb4e7 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-account.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-account.c
@@ -474,6 +474,11 @@ rb_audioscrobbler_account_auth_button_clicked_cb (GtkButton *button,
 
 		rb_audioscrobbler_account_save_session_settings (account);
 		rb_audioscrobbler_account_login_status_sync (account);
+		if (account->priv->audioscrobbler != NULL) {
+			rb_audioscrobbler_set_authentication_details (account->priv->audioscrobbler,
+			                                              account->priv->username,
+			                                              account->priv->session_key);
+		}
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]