Commit 301d684e authored by Yunhe Guo's avatar Yunhe Guo

Fix folder dialog always opens even if it is set and not empty

parent 28a576c0
Pipeline #5936 passed with stage
in 6 minutes and 4 seconds
......@@ -511,11 +511,12 @@ PlaylistItemList PlaylistCollection::selectedItems()
void PlaylistCollection::scanFolders()
{
CollectionList::instance()->addFiles(m_folderList);
if(CollectionList::instance()->count() == 0)
// If no music folder was configured, open music folder dialog
if(m_folderList.count() == 0)
addFolder();
CollectionList::instance()->addFiles(m_folderList);
enableDirWatch(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment