1 file changed
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user