diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 086405df0..8d7c4ac2d 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1448,7 +1448,8 @@ namespace Handbrake }
private void btn_removePreset_Click(object sender, EventArgs e)
{
- presetHandler.remove(treeView_presets.SelectedNode.Text);
+ if (treeView_presets.SelectedNode != null)
+ presetHandler.remove(treeView_presets.SelectedNode.Text);
// Now reload the preset panel
loadPresetPanel();
}
|