Set Unknown error if error is missing in Subsonic too

This commit is contained in:
Jonas Kvinge 2019-06-20 16:37:37 +02:00
parent bf4001968e
commit 505c0eeae2
1 changed files with 10 additions and 2 deletions

View File

@ -722,8 +722,16 @@ void SubsonicRequest::FinishCheck() {
album_covers_received_ >= album_covers_requested_
) {
finished_ = true;
if (no_results_) emit Results(SongList(), QString());
else emit Results(songs_, errors_);
if (no_results_ && songs_.isEmpty()) {
emit Results(SongList(), QString());
}
else {
if (songs_.isEmpty() && errors_.isEmpty())
emit Results(songs_, tr("Unknown error"));
else
emit Results(songs_, errors_);
}
}
}