From 25c0afbb80d33d89ca38317eccd5f2c7ce328e9b Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 12 Sep 2012 15:01:41 +0200 Subject: [PATCH] 0000826: reading from the python console for using pdb --- src/Gui/PythonConsole.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/PythonConsole.cpp b/src/Gui/PythonConsole.cpp index 8c5d2cea92..3f8eb7d480 100644 --- a/src/Gui/PythonConsole.cpp +++ b/src/Gui/PythonConsole.cpp @@ -1236,8 +1236,8 @@ QString PythonConsole::readline( void ) // ... and wait until we get notified about pendingSource QObject::connect( this, SIGNAL(pendingSource()), &loop, SLOT(quit()) ); // application is about to quit - if (loop.exec() < 0) - inputBuffer = QLatin1String("quit()"); + if (loop.exec() != 0) + { PyErr_SetInterrupt(); } //< send SIGINT to python this->_sourceDrain = NULL; //< disable source drain return inputBuffer.append(QChar::fromAscii('\n')); //< pass a newline here, since the readline-caller may need it! }