Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

[Debugger] Make sure SelectedRow isn't -1 when renaming an expression #9112

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

jstedfast
Copy link
Member

@jstedfast
Copy link
Member Author

@monojenkins backport release-8.4

@@ -939,7 +942,7 @@ void OnRename (object sender, EventArgs args)

bool CanRename (out bool enabled)
{
enabled = SelectedRowCount == 1;
enabled = SelectedRowCount == 1 && SelectedRow != -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not at all sure how this would be possible

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect it's not, but added it anyway for double-extra-sureness

@sgmunn sgmunn merged commit 3480664 into master Oct 29, 2019
@sgmunn sgmunn deleted the jstedfast-debugger-onrename-crash-fix branch October 29, 2019 18:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants