Fix 'locate in library' when MPD dir is not accessible.
This commit is contained in:
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user