Fix Genre refresh when change grouping
This commit is contained in:
@@ -85,7 +85,7 @@ void MusicScanner::scan(const QString &folder, const QString &cacheFile, bool re
|
||||
MusicLibraryModel::convertCache(cacheFile);
|
||||
readProgress(0.0);
|
||||
if (lib->fromXML(cacheFile, QDateTime(), folder)) {
|
||||
fixLibrary(lib);
|
||||
lib->applyGrouping();
|
||||
if (!stopRequested) {
|
||||
emit libraryUpdated(lib);
|
||||
} else {
|
||||
@@ -108,7 +108,7 @@ void MusicScanner::scan(const QString &folder, const QString &cacheFile, bool re
|
||||
scanFolder(library, topLevel, topLevel, existing, 0);
|
||||
|
||||
if (!stopRequested) {
|
||||
fixLibrary(library);
|
||||
library->applyGrouping();
|
||||
if (!cacheFile.isEmpty()) {
|
||||
writeProgress(0.0);
|
||||
library->toXML(cacheFile, QDateTime(), this);
|
||||
@@ -119,16 +119,6 @@ void MusicScanner::scan(const QString &folder, const QString &cacheFile, bool re
|
||||
}
|
||||
}
|
||||
|
||||
void MusicScanner::fixLibrary(MusicLibraryItemRoot *lib)
|
||||
{
|
||||
if (!stopRequested && MPDParseUtils::groupSingle()) {
|
||||
lib->groupSingleTracks();
|
||||
}
|
||||
if (!stopRequested && MPDParseUtils::groupMultiple()) {
|
||||
lib->groupMultipleArtists();
|
||||
}
|
||||
}
|
||||
|
||||
void MusicScanner::saveCache(const QString &cache, MusicLibraryItemRoot *lib)
|
||||
{
|
||||
lastCacheProg=-1;
|
||||
|
||||
Reference in New Issue
Block a user