summaryrefslogtreecommitdiffstats
path: root/macosx/HBPictureController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-01-15 19:44:27 +0100
committerDamiano Galassi <[email protected]>2016-01-15 19:44:27 +0100
commit6ad1d603b266319d97a69fd53dcf3eeab88bde63 (patch)
tree092ff4ace3b65fe81c16b4f37a6f7d86cd81ee47 /macosx/HBPictureController.m
parentea41fc2983591d73e1aa6d817f646bf5679060b7 (diff)
MacGui: pass the main window undomanager to the preview window.
Diffstat (limited to 'macosx/HBPictureController.m')
-rw-r--r--macosx/HBPictureController.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBPictureController.m b/macosx/HBPictureController.m
index 8dee13187..b6fed1f28 100644
--- a/macosx/HBPictureController.m
+++ b/macosx/HBPictureController.m
@@ -72,6 +72,11 @@ static void *HBPictureControllerContext = &HBPictureControllerContext;
[self adjustSizingDisplay:nil];
}
+- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window
+{
+ return self.previewController.window.undoManager;
+}
+
#pragma mark - KVO
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context