add songs with no parent to clist
This commit is contained in:
		
							parent
							
								
									e9eba9b5ab
								
							
						
					
					
						commit
						3f651d069d
					
				@ -4802,7 +4802,7 @@ void Courtroom::music_random()
 | 
				
			|||||||
                             QTreeWidgetItemIterator::NotHidden |
 | 
					                             QTreeWidgetItemIterator::NotHidden |
 | 
				
			||||||
                                 QTreeWidgetItemIterator::NoChildren);
 | 
					                                 QTreeWidgetItemIterator::NoChildren);
 | 
				
			||||||
  while (*it) {
 | 
					  while (*it) {
 | 
				
			||||||
    if ((*it)->parent()->isExpanded()) {
 | 
					    if (!(*it)->parent() || (*it)->parent()->isExpanded()) { // add top level songs and songs in expanded categories
 | 
				
			||||||
      clist += (*it);
 | 
					      clist += (*it);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    ++it;
 | 
					    ++it;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user