summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2017-07-03 05:50:55 (GMT)
committerKevin Walzer <kw@codebykevin.com>2017-07-03 05:50:55 (GMT)
commita2d0ee1d83897b9b5d95ea1e6182cdc2448e9425 (patch)
tree1dc8656f85738cb4030c9510d62fad4d2d54aa58 /macosx
parent4abdac47b667157cd88896d18468ea3c25235b00 (diff)
downloadtk-a2d0ee1d83897b9b5d95ea1e6182cdc2448e9425.zip
tk-a2d0ee1d83897b9b5d95ea1e6182cdc2448e9425.tar.gz
tk-a2d0ee1d83897b9b5d95ea1e6182cdc2448e9425.tar.bz2
Fix last crashing bug for save dialogs on macOS
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXDialog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 9d78ce6..5bfcaf1 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -915,7 +915,6 @@ Tk_GetSaveFileObjCmd(
} else {
[savepanel setNameFieldStringValue:@""];
}
- [savepanel setNameFieldStringValue:filename];
[savepanel beginSheetModalForWindow:parent
completionHandler:^(NSInteger returnCode)
{ [NSApp tkFilePanelDidEnd:savepanel