Merge pull request #4739 from Chocobozzz/subsonic_fix

Emit scanfinished when the library is empty
This commit is contained in:
John Maguire 2015-02-06 11:33:34 +01:00
commit fbf22ccf3b
1 changed files with 1 additions and 0 deletions

View File

@ -426,6 +426,7 @@ void SubsonicLibraryScanner::OnGetAlbumListFinished(QNetworkReply* reply,
} else if (album_queue_.size() == 0) {
// Empty reply and no albums means an empty Subsonic server
scanning_ = false;
emit ScanFinished();
} else {
// Empty reply but we have some albums, time to start fetching songs
// Start up the maximum number of concurrent requests, finished requests get