]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport of 1.4:
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 24 Feb 2002 23:07:58 +0000 (23:07 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 24 Feb 2002 23:07:58 +0000 (23:07 +0000)
Don't call PyMac_OutputSeen if we have a custom console. Fix by
Alexandre Parenteau.

Mac/Python/pyGUSISIOUX.cp

index 40670d8227880023067d540aa7fac039a49f655a..8a5161863f597c56e1ec4bd65e371c0f546c2c7f 100644 (file)
@@ -79,10 +79,12 @@ bool GUSISIOUXSocket::initialized = false;
 
 GUSISIOUXSocket::GUSISIOUXSocket(int fd) : fFd(fd) 
 {
-       if (!PyMac_GetDelayConsoleFlag() && !hasCustomConsole() && !initialized)
-               Initialize();
-       /* Tell the upper layers there's no unseen output */
-       PyMac_OutputSeen();
+       if (!hasCustomConsole()) {
+               if (!PyMac_GetDelayConsoleFlag() && !initialized)
+                       Initialize();
+               /* Tell the upper layers there's no unseen output */
+               PyMac_OutputSeen();
+       }
 }
 
 void