Save/update device cache

This commit is contained in:
craig
2012-02-28 19:31:47 +00:00
parent 024ab5bb42
commit c8a1e23ea1
5 changed files with 39 additions and 25 deletions

View File

@@ -591,17 +591,6 @@ QList<Song> DevicesModel::songs(const QModelIndexList &indexes, bool playableOnl
return songs;
}
void DevicesModel::updateSong(const Song &orig, const Song &edit)
{
foreach (Device *dev, devices) {
if (Device::Ums==dev->type() && orig.file.startsWith(dev->path())) {
dev->removeSongFromList(orig);
dev->addSongToList(edit);
return;
}
}
}
void DevicesModel::getDetails(QSet<QString> &artists, QSet<QString> &albumArtists, QSet<QString> &albums, QSet<QString> &genres)
{
foreach (Device *dev, devices) {