Skip to content

Commit

Permalink
Merge pull request #4062 from uklotzde/browsethread
Browse files Browse the repository at this point in the history
BrowseThread: Fix debug assertion for undefined bpm values
  • Loading branch information
Holzhaus authored Jul 6, 2021
2 parents d4a6b2e + d9839fe commit a3c6595
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/library/browse/browsethread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ void BrowseThread::populateModel() {

item = new QStandardItem(trackMetadata.getTrackInfo().getBpmText());
item->setToolTip(item->text());
item->setData(trackMetadata.getTrackInfo().getBpm().getValue(), Qt::UserRole);
const mixxx::Bpm bpm = trackMetadata.getTrackInfo().getBpm();
item->setData(bpm.hasValue() ? bpm.getValue()
: mixxx::Bpm::kValueUndefined,
Qt::UserRole);
row_data.insert(COLUMN_BPM, item);

item = new QStandardItem(trackMetadata.getTrackInfo().getKey());
Expand Down

0 comments on commit a3c6595

Please sign in to comment.