Skip to content

Commit

Permalink
WTrackTableView::loadTrackModel: assert earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Aug 8, 2021
1 parent aa97a2c commit a1427f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget/wtracktableview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ void WTrackTableView::slotGuiTick50ms(double /*unused*/) {
// slot
void WTrackTableView::loadTrackModel(QAbstractItemModel* model, bool restoreState) {
qDebug() << "WTrackTableView::loadTrackModel()" << model;

TrackModel* trackModel = dynamic_cast<TrackModel*>(model);

VERIFY_OR_DEBUG_ASSERT(model) {
return;
}

TrackModel* trackModel = dynamic_cast<TrackModel*>(model);

VERIFY_OR_DEBUG_ASSERT(trackModel) {
return;
}
Expand Down

0 comments on commit a1427f8

Please sign in to comment.