]> granicus.if.org Git - handbrake/commitdiff
MacGui: save the preset description, it had been broken after the add preset window...
authorritsuka <damiog@gmail.com>
Mon, 22 Dec 2014 17:06:53 +0000 (17:06 +0000)
committerritsuka <damiog@gmail.com>
Mon, 22 Dec 2014 17:06:53 +0000 (17:06 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6640 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBAddPresetController.m

index c33610496bf0b82e6fa54b478f90013fbd5f9f3e..a53482c0c4d1ef8d4adaa4e586443b350776fbee 100644 (file)
     else
     {
         self.preset.name = self.name.stringValue;
-        self.preset.presetDescription = self.name.stringValue;
+        self.preset.presetDescription = self.desc.stringValue;
 
         NSMutableDictionary *dict = [[self.preset.content mutableCopy] autorelease];
 
+        dict[@"PresetName"] = self.name.stringValue;
+        dict[@"PresetDescription"] = self.desc.stringValue;
+
         // Get the picture size
         dict[@"PictureWidth"] = @(self.picWidth.integerValue);
         dict[@"PictureHeight"] = @(self.picHeight.integerValue);