aboutsummaryrefslogtreecommitdiffstats
path: root/Source/MainController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/MainController.m')
-rw-r--r--Source/MainController.m4
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];
}
}
}