summaryrefslogtreecommitdiffstats
path: root/collectiondatesview.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-10-13 04:56:32 +0200
committerArno <arno@disconnect.de>2018-10-13 04:56:32 +0200
commit6f87db1897e4be7bccd2684da571ed251c5b695e (patch)
treed1dbbeb6757456e5e9aaa36ab53a38662ed7f3b1 /collectiondatesview.cpp
parent2a866788cd2608b5f893f173a611785da44d3047 (diff)
downloadBeetPlayer-6f87db1897e4be7bccd2684da571ed251c5b695e.tar.gz
BeetPlayer-6f87db1897e4be7bccd2684da571ed251c5b695e.tar.bz2
BeetPlayer-6f87db1897e4be7bccd2684da571ed251c5b695e.zip
Implement add sources to CopyDialog
Diffstat (limited to 'collectiondatesview.cpp')
-rw-r--r--collectiondatesview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/collectiondatesview.cpp b/collectiondatesview.cpp
index 5544f72..59fd5d2 100644
--- a/collectiondatesview.cpp
+++ b/collectiondatesview.cpp
@@ -100,5 +100,11 @@ void CollectionDatesView::copyTo(){
destDir = destDir.replace(" - ", "-");
destDir = destDir.replace(' ', '.');
cdlg->setDestFolder(destDir);
+ QStringList sources;
+ for(int i = 0; i < item->rowCount(); ++i){
+ QStandardItem *childItem = item->child(i);
+ sources << childItem->data(FullPathRole).toString();
+ }
+ cdlg->setSources(sources);
cdlg->show();
}