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:
committed by
craig.p.drummond
parent
e5162dc938
commit
4ea883616f
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user