0000826: reading from the python console for using pdb

This commit is contained in:
wmayer 2012-09-12 15:01:41 +02:00
parent 5c6a069069
commit 25c0afbb80

View File

@ -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!
}