diff --git a/SourceGen/WpfGui/MainWindow.xaml.cs b/SourceGen/WpfGui/MainWindow.xaml.cs index 393a957..4f266d2 100644 --- a/SourceGen/WpfGui/MainWindow.xaml.cs +++ b/SourceGen/WpfGui/MainWindow.xaml.cs @@ -1004,12 +1004,8 @@ namespace SourceGen.WpfGui { private void CodeListView_ReplaceEntry(int index, DisplayList.FormattedParts newParts) { bool isSelected = CodeDisplayList.SelectedIndices[index]; if (isSelected && codeListView.SelectionMode != SelectionMode.Single) { - if (codeListView.SelectionMode != SelectionMode.Single) { - Debug.WriteLine("HEY: hit unhappy single-select case"); - codeListView.SelectedIndex = -1; - } else { - codeListView.SelectedItems.Remove(CodeDisplayList[index]); - } + // Remove entry from selected items list in ListView control. + codeListView.SelectedItems.Remove(CodeDisplayList[index]); } CodeDisplayList[index] = newParts; if (isSelected) {