diff --git a/src/library/trackset/crate/cratefeature.cpp b/src/library/trackset/crate/cratefeature.cpp index f4f46fba506..c4681bb8b22 100644 --- a/src/library/trackset/crate/cratefeature.cpp +++ b/src/library/trackset/crate/cratefeature.cpp @@ -877,7 +877,9 @@ void CrateFeature::slotCrateTableChanged(CrateId crateId) { if (!activateCrate(m_crateTableModel.selectedCrate())) { // probably last clicked crate was deleted, try to // select the stored sibling - activateCrate(m_prevSiblingCrate); + if (m_prevSiblingCrate.isValid()) { + activateCrate(m_prevSiblingCrate); + } } } else { // No valid selection to restore