summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-07-02 19:04:27 +0000
committersr55 <[email protected]>2008-07-02 19:04:27 +0000
commit35c0d486ded79331cea7a8d8b7eb97c4dee3c382 (patch)
treeed2d3a1eeca890d9bb782b1ea5b75a9bce4bba1d /win/C#/frmMain.cs
parent7dcf52379eb35e0a1553ecb6961b8376833e7603 (diff)
WinGui:
- Small oversight. Fix bug with the remove preset button if no preset is selected git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1553 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs3
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();
}