summaryrefslogtreecommitdiffstats
path: root/Mac/PythonLauncher/MyDocument.m
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2008-05-02 21:42:35 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2008-05-02 21:42:35 (GMT)
commitf2ef92cee70de65f6f963fc4ffd3ac5729a19d90 (patch)
tree000d4072b1cc224b56048ce137fd8090113bc21d /Mac/PythonLauncher/MyDocument.m
parent6780a9dd9f8e8c79b9215e1f6e98cb5f711561bc (diff)
downloadcpython-f2ef92cee70de65f6f963fc4ffd3ac5729a19d90.zip
cpython-f2ef92cee70de65f6f963fc4ffd3ac5729a19d90.tar.gz
cpython-f2ef92cee70de65f6f963fc4ffd3ac5729a19d90.tar.bz2
Fix for #1905: PythonLauncher not working correctly on OSX 10.5/Leopard
This fixes both Python Launchar and the terminalcommand module.
Diffstat (limited to 'Mac/PythonLauncher/MyDocument.m')
-rwxr-xr-xMac/PythonLauncher/MyDocument.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/PythonLauncher/MyDocument.m b/Mac/PythonLauncher/MyDocument.m
index 5acc2dc..86112c4 100755
--- a/Mac/PythonLauncher/MyDocument.m
+++ b/Mac/PythonLauncher/MyDocument.m
@@ -121,8 +121,8 @@
return YES;
} else {
[self run];
- [self close];
- return NO;
+ [self performSelector:@selector(close) withObject:nil afterDelay:0.0];
+ return YES;
}
}