diff options
author | Damiano Galassi <[email protected]> | 2017-03-16 11:03:25 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-03-16 11:03:25 +0100 |
commit | cdf2b1d0efe8265b66df05f428cf01ff67bb4621 (patch) | |
tree | 81ff681ab24a40415a3c8bbfa5ffc73eb937db87 /macosx/HBController.m | |
parent | 1f54807178d50df83d9643e8ca05370f1b7f73a5 (diff) |
MacGui: end the textfields editing before adding a job to queue or creating a preset, so all the current job settings will be saved.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r-- | macosx/HBController.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index 5b721237b..d29a10876 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -9,6 +9,7 @@ #import "HBToolbarBadgedItem.h" #import "HBQueueController.h" #import "HBTitleSelectionController.h" +#import "NSWindow+HBAdditions.h" #import "HBPresetsManager.h" #import "HBPreset.h" @@ -1090,6 +1091,7 @@ */ - (void)doAddToQueue { + [self.window HB_endEditing]; [fQueueController addJob:[self.job copy]]; } @@ -1175,6 +1177,8 @@ - (IBAction)addTitlesToQueue:(id)sender { + [self.window HB_endEditing]; + self.titlesSelectionController = [[HBTitleSelectionController alloc] initWithTitles:self.core.titles presetName:self.job.presetName delegate:self]; @@ -1403,6 +1407,8 @@ - (IBAction)showAddPresetPanel:(id)sender { + [self.window HB_endEditing]; + BOOL defaultToCustom = ((self.job.picture.width + self.job.picture.cropRight + self.job.picture.cropLeft) < self.job.picture.sourceWidth) || ((self.job.picture.height + self.job.picture.cropTop + self.job.picture.cropBottom) < self.job.picture.sourceHeight); |