diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-03-28 18:55:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-28 18:55:14 -0500 |
| commit | 7583c574427484607f9266da7f3daa34f8d2590d (patch) | |
| tree | 9b0a0dc5f8574226586d43c2512fe4655a0fb574 /src | |
| parent | 4c52d4d186d98b90e6f962d6dcc927ff65a92baa (diff) | |
| parent | 3f651d069d52a5f4dc8f98fa0e3f44ccfd72667e (diff) | |
Merge pull request #506 from AttorneyOnline/fix/song-parents
Fix a crash when shuffling songlists that have songs with no parent category
Diffstat (limited to 'src')
| -rw-r--r-- | src/courtroom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 2d634879..e5063954 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -4802,7 +4802,7 @@ void Courtroom::music_random() QTreeWidgetItemIterator::NotHidden | QTreeWidgetItemIterator::NoChildren); while (*it) { - if ((*it)->parent()->isExpanded()) { + if (!(*it)->parent() || (*it)->parent()->isExpanded()) { // add top level songs and songs in expanded categories clist += (*it); } ++it; |
