Skip to content

Commit

Permalink
Crates: test previous sibling crate before activating it
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jul 28, 2023
1 parent cde8402 commit d98ae96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/library/trackset/crate/cratefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d98ae96

Please sign in to comment.