parent
620bc992a8
commit
6b49b3f3e7
@ -192,7 +192,7 @@ public partial class SectionTree : UserControl
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Get the currently selected section:
|
// 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:
|
// If the selected node is not null, enable the remove & edit button:
|
||||||
this.buttonRename.Enabled = this.buttonRemove.Enabled = selectedNode is not null;
|
this.buttonRename.Enabled = this.buttonRemove.Enabled = selectedNode is not null;
|
||||||
|
Loading…
Reference in New Issue
Block a user