[PR #13242] Fix deleting the last profile crashing Terminal #29437

Open
opened 2026-01-31 09:34:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/13242

State: closed
Merged: Yes


Summary of the Pull Request

When a profile gets deleted, we were navigating to the next item assuming it was a profile when it may not be. This commit fixes this by checking the tag of the next menu item before we navigate to it.

PR Checklist

Validation Steps Performed

Deleting the last profile in the SUI doesn't cause a crash

**Original Pull Request:** https://github.com/microsoft/terminal/pull/13242 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request When a profile gets deleted, we were navigating to the next item assuming it was a profile when it may not be. This commit fixes this by checking the tag of the next menu item before we navigate to it. ## PR Checklist * [x] Closes #13125 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I work here ## Validation Steps Performed Deleting the last profile in the SUI doesn't cause a crash
claunia added the pull-request label 2026-01-31 09:34:54 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29437