]> granicus.if.org Git - python/commitdiff
Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre Parenteau.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 11 Jan 2002 10:24:23 +0000 (10:24 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 11 Jan 2002 10:24:23 +0000 (10:24 +0000)
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