If MPD's database time is invalid, and the cache's database time is invalid, then accept a database listing. This works-around an issue with using MPD's proxy DB - where no database time is sent.

BUG: 326
This commit is contained in:
craig.p.drummond
2013-11-10 17:47:55 +00:00
committed by craig.p.drummond
parent e5162dc938
commit 4ea883616f
2 changed files with 4 additions and 1 deletions

View File

@@ -94,6 +94,9 @@
highlighted artists) will be added to playqueue in a random order.
53. Add 'Shuffle Albums' entry to playqueue context menu.
54. When showing a new page, place focus on view.
55. If MPD's database time is invalid, and the cache's database time is
invalid, then accept a database listing. This works-around an issue with
using MPD's proxy DB - where no database time is sent.
1.1.3
-----

View File

@@ -417,7 +417,7 @@ QSet<QString> MusicLibraryModel::getAlbumArtists()
void MusicLibraryModel::updateMusicLibrary(MusicLibraryItemRoot *newroot, QDateTime dbUpdate, bool fromFile)
{
if (!mpdModel || databaseTime >= dbUpdate) {
if (!mpdModel || (databaseTime.isValid() && dbUpdate.isValid() && databaseTime >= dbUpdate)) {
delete newroot;
return;
}