diff --git a/I18N Commander/UI WinForms/Components/SectionTree.cs b/I18N Commander/UI WinForms/Components/SectionTree.cs index a436b59..2ebbc55 100644 --- a/I18N Commander/UI WinForms/Components/SectionTree.cs +++ b/I18N Commander/UI WinForms/Components/SectionTree.cs @@ -192,7 +192,7 @@ public partial class SectionTree : UserControl return; // Get the currently selected section: - var selectedNode = this.treeView.SelectedNode; + var selectedNode = e.Node; // If the selected node is not null, enable the remove & edit button: this.buttonRename.Enabled = this.buttonRemove.Enabled = selectedNode is not null;