From f6468f01197064482e7da0cc6b088deb1d37b965 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sun, 24 Feb 2002 23:07:58 +0000 Subject: [PATCH] backport of 1.4: Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre Parenteau. --- Mac/Python/pyGUSISIOUX.cp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Mac/Python/pyGUSISIOUX.cp b/Mac/Python/pyGUSISIOUX.cp index 40670d822788..8a5161863f59 100644 --- a/Mac/Python/pyGUSISIOUX.cp +++ b/Mac/Python/pyGUSISIOUX.cp @@ -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 -- 2.47.3