1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 18:35:16 +01:00

Remove subsonic songs is we are not connected

This commit is contained in:
Chocobozzz 2015-05-15 17:36:19 +02:00
parent f81b7c595c
commit 0a4de71c37

View File

@ -264,6 +264,8 @@ void SubsonicService::ReloadDatabaseFinished() {
void SubsonicService::OnLoginStateChanged(
SubsonicService::LoginState newstate) {
// TODO(Alan Briolat): library refresh logic?
if(newstate != LoginState_Loggedin)
library_backend_->DeleteAll();
}
void SubsonicService::OnPingFinished(QNetworkReply* reply) {