summaryrefslogtreecommitdiffstats
path: root/macosx/HBPictureViewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-28 08:15:52 +0100
committerDamiano Galassi <[email protected]>2015-10-28 08:15:52 +0100
commit89c0a25d548575ac2ad9e867fa0f506fed7ad625 (patch)
tree6ae99c75b0558cb04af6842ea8b5b53bdac5c0aa /macosx/HBPictureViewController.m
parent5adcef6070a6b8f91a92d2c22e5449dab3b15a34 (diff)
MacGui: annotate the type of some arrays, and check the count of the input jobs in HBQueueController addJobsFromArray:, so we don't add an empty undo command.
Diffstat (limited to 'macosx/HBPictureViewController.m')
-rw-r--r--macosx/HBPictureViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBPictureViewController.m b/macosx/HBPictureViewController.m
index 344580ec6..87618cb97 100644
--- a/macosx/HBPictureViewController.m
+++ b/macosx/HBPictureViewController.m
@@ -38,7 +38,7 @@ static void *HBPictureViewControllerContext = &HBPictureViewControllerContext;
{
@try
{
- [self removeObserver:self forKeyPath:@"self.picture.modulus"];
+ [self removeObserver:self forKeyPath:@"self.picture.modulus" context:HBPictureViewControllerContext];
}
@catch (NSException * __unused exception) {}
}
@@ -64,7 +64,7 @@ static void *HBPictureViewControllerContext = &HBPictureViewControllerContext;
{
if (context == HBPictureViewControllerContext)
{
- // Set the increment here, it's not possible with bidings.
+ // Set the increment here, it's not possible with bindings.
if ([keyPath isEqualToString:@"self.picture.modulus"])
{
[self.widthStepper setIncrement:self.picture.modulus];