Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/PerfView/StackViewer/StackWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2592,8 +2592,15 @@ private void DoHyperlinkHelp(object sender, ExecutedRoutedEventArgs e)
private void ByName_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
e.Handled = true;
DoViewInCallers(sender, null);

// Check if a single node is selected before proceeding
// Exactly one node must be selected in order to view callers.
if (GetSelectedNodes().Count == 1)
{
DoViewInCallers(sender, null);
}
}

internal void DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: formatting, should be new line between methods.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed formatting by adding blank line between methods in commit 6d2c944.

{
var uiElement = sender as UIElement;
Expand Down