Add confirmation box for opening songs in file browser

This commit is contained in:
Jonas Kvinge
2019-06-20 17:00:10 +02:00
parent 505c0eeae2
commit 647e7e708a
3 changed files with 25 additions and 1 deletions

View File

@@ -592,12 +592,15 @@ void CollectionView::FilterReturnPressed() {
}
void CollectionView::ShowInBrowser() {
SongList songs = GetSelectedSongs();
QList<QUrl> urls;
for (const Song &song : GetSelectedSongs()) {
for (const Song &song : songs) {
urls << song.url();
}
Utilities::OpenInFileBrowser(urls);
}
int CollectionView::TotalSongs() {