diff options
author | Damiano Galassi <[email protected]> | 2016-01-15 19:44:27 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-01-15 19:44:27 +0100 |
commit | 6ad1d603b266319d97a69fd53dcf3eeab88bde63 (patch) | |
tree | 092ff4ace3b65fe81c16b4f37a6f7d86cd81ee47 /macosx/HBPictureController.m | |
parent | ea41fc2983591d73e1aa6d817f646bf5679060b7 (diff) |
MacGui: pass the main window undomanager to the preview window.
Diffstat (limited to 'macosx/HBPictureController.m')
-rw-r--r-- | macosx/HBPictureController.m | 5 |
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 |