diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 14 |
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);
+ }
}
}
|