Skip to content

Commit

Permalink
CrateFeature::activateChild: just return if clicking the Archived item
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed May 22, 2023
1 parent fb6d072 commit 27e625a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/trackset/crate/cratefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ void CrateFeature::activate() {
void CrateFeature::activateChild(const QModelIndex& index) {
qDebug() << " CrateFeature::activateChild()" << index;
CrateId crateId(crateIdFromIndex(index));
VERIFY_OR_DEBUG_ASSERT(crateId.isValid()) {
if (!crateId.isValid()) {
// happens when clicking the 'Archived' item
return;
}
m_lastClickedIndex = index;
Expand Down

0 comments on commit 27e625a

Please sign in to comment.