diff options
-rw-r--r-- | TableDocument.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/TableDocument.m b/TableDocument.m index 5c93c09f..44ee05df 100644 --- a/TableDocument.m +++ b/TableDocument.m @@ -258,10 +258,7 @@ stops modal session with code 0 reused when user hits the close button of the variablseSheet or of the createTableSyntaxSheet */ { - if (sender != nil) { - [NSApp endSheet:[sender window] returnCode:0]; - } - + [NSApp stopModalWithCode:0]; } /** |