From 44cb527e73302b68e224efaadcada24f208c42dc Mon Sep 17 00:00:00 2001 From: alcexhim Date: Mon, 11 May 2015 22:13:02 -0400 Subject: [PATCH] Disable the Delete menu item if nothing is selected --- .../Editors/Executable/ExecutableEditor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Executable.UserInterface.WindowsForms/Editors/Executable/ExecutableEditor.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Executable.UserInterface.WindowsForms/Editors/Executable/ExecutableEditor.cs index c7296946..fdcf9d8c 100644 --- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Executable.UserInterface.WindowsForms/Editors/Executable/ExecutableEditor.cs +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Executable.UserInterface.WindowsForms/Editors/Executable/ExecutableEditor.cs @@ -66,6 +66,7 @@ namespace UniversalEditor.Editors.Executable private void mnuContextListViewSections_Opening(object sender, CancelEventArgs e) { + mnuContextListViewSectionsDelete.Enabled = (lvSections.SelectedItems.Count > 0); mnuContextListViewSectionsExport.Enabled = (lvSections.SelectedItems.Count > 0); }