summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2011-10-21 20:30:01 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2011-10-21 20:30:01 +0200
commit0d73477754400ffb91b1ea10490c33c69b501075 (patch)
tree0463b29abed80f3cd01b4625f5329b2eeb945693
parent2e7887e14ab7c28e354fd485486dddf70488eb61 (diff)
Disable offline mode when explicitely logging out.
-rw-r--r--libQtSpotify/qspotifysession.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libQtSpotify/qspotifysession.cpp b/libQtSpotify/qspotifysession.cpp
index 043aeb7..2722bb8 100644
--- a/libQtSpotify/qspotifysession.cpp
+++ b/libQtSpotify/qspotifysession.cpp
@@ -757,8 +757,10 @@ void QSpotifySession::logout(bool keepLoginInfo)
stop();
m_playQueue->clear();
- if (!keepLoginInfo)
+ if (!keepLoginInfo) {
+ setOfflineMode(false);
sp_session_forget_me(m_sp_session);
+ }
m_explicitLogout = true;