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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13242
Author: @PankajBhojwani
Created: 6/7/2022
Status: Merged
Merged: 6/8/2022
Merged by: @undefined

Base: mainHead: dev/pabhoj/delete_profiles_crash


📝 Commits (1)

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalSettingsEditor/MainPage.cpp (+9 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13242 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 6/7/2022 **Status:** ✅ Merged **Merged:** 6/8/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/pabhoj/delete_profiles_crash` --- ### 📝 Commits (1) - [`1171c9d`](https://github.com/microsoft/terminal/commit/1171c9dfe093072684f79b1dcdf06a10fbd3fb08) check the tag ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsEditor/MainPage.cpp` (+9 -1) </details> ### 📄 Description ## 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:34:53 +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#29432