Fix 'locate in library' when MPD dir is not accessible.

This commit is contained in:
craig.p.drummond
2012-06-01 16:24:40 +00:00
parent 4c726a1a3b
commit 853fece7eb
2 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,9 @@
don't expect much!). See README.
4. Add Track Organizer dialog to Qt-only build.
5. Disable 'Edit Tags' and 'Organize Files' actions if MPD dir is not readable.
6. No need to check if playqueue song exists in MPD dir whe performing a
'locate in library'. Its possible that the configured MPD dir does not
exist - but 'locate in library' should still work.
0.7.1
-----

View File

@@ -332,7 +332,7 @@ QList<Song> PlayQueueView::selectedSongs() const
foreach (const QModelIndex &idx, selected) {
Song song=idx.data(GroupedView::Role_Song).value<Song>();
if (!song.file.isEmpty() && !song.file.contains(":/") && !song.file.startsWith('/') && QFile::exists(Settings::self()->mpdDir()+song.file)) {
if (!song.file.isEmpty() && !song.file.contains(":/") && !song.file.startsWith('/')) {
songs.append(song);
}
}