summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-19 18:42:08 +0000
committersr55 <[email protected]>2012-06-19 18:42:08 +0000
commite4460af63dd76181f489da5f6281a3716c2bf58f (patch)
tree0627446f346cb92bfff2e2948bdd2d6cdc81ef88 /win/CS/HandBrake.ApplicationServices/Services
parent5371a5167357f3d1f2120fc8fefad4c4fd1527a8 (diff)
WinGui:WinGui:
- Fix Foreign Audio Search Feature - Fix FFMpeg4/2 encoder selection - Allow the Preset window to overwrite existing presets. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4756 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/PresetService.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
index 804a963b6..bab41a9b8 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
@@ -116,7 +116,8 @@ namespace HandBrake.ApplicationServices.Services
#region Public Methods
/// <summary>
- /// Add a new preset to the system
+ /// Add a new preset to the system.
+ /// Performs an Update if it already exists
/// </summary>
/// <param name="preset">
/// A Preset to add
@@ -135,6 +136,11 @@ namespace HandBrake.ApplicationServices.Services
// Update the presets file
this.UpdatePresetFiles();
return true;
+ }
+ else
+ {
+ this.Update(preset);
+ return true;
}
return false;