diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/MainController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/MainController.m b/Source/MainController.m index a0b69ffd..f00e3264 100644 --- a/Source/MainController.m +++ b/Source/MainController.m @@ -192,8 +192,8 @@ NSWindow *attachedSheet = [window attachedSheet]; if (attachedSheet) { - [NSApp endSheet:window returnCode:0]; - [window orderOut:nil]; + [NSApp endSheet:attachedSheet returnCode:0]; + [attachedSheet orderOut:nil]; } } } |