summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-05-22 21:52:24 +0000
committersr55 <[email protected]>2010-05-22 21:52:24 +0000
commitabc70384ca800af91c14b53046914bb3f727e636 (patch)
tree03840d045c0e1d7cf6d6d2ce3d5f242340bf167d /win/C#/frmMain.cs
parent1d5212a96a526423aa124ba27193479276eb0a67 (diff)
WinGui:
- Missed frmMain changes for last checkin. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3313 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 72790bd09..8a4141f55 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -748,16 +748,20 @@ namespace Handbrake
private void ExportPreset()
{
- MessageBox.Show("This feature has not been implimented yet.", "Not Implimented", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
+ // MessageBox.Show("This feature has not been implimented yet.", "Not Implimented", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ // return;
SaveFileDialog savefiledialog = new SaveFileDialog();
savefiledialog.Filter = "plist|*.plist";
- if (savefiledialog.ShowDialog() == DialogResult.OK)
+ if (treeView_presets.SelectedNode != null)
{
- QueryParser parsed = QueryParser.Parse(QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null));
- PlistPresetHandler.Export(savefiledialog.FileName, parsed);
+
+ if (savefiledialog.ShowDialog() == DialogResult.OK)
+ {
+ Preset preset = presetHandler.GetPreset(treeView_presets.SelectedNode.Text);
+ PlistPresetHandler.Export(savefiledialog.FileName, preset);
+ }
}
}