Proper handling of SystemExitException in Python

This commit is contained in:
wmayer
2012-08-11 10:58:54 +02:00
parent 7ca646c991
commit 40a997217b
8 changed files with 37 additions and 18 deletions

View File

@@ -709,7 +709,7 @@ void PythonConsole::runSource(const QString& line)
}
if (ret == QMessageBox::Yes) {
PyErr_Clear();
qApp->quit();
throw;
}
else {
PyErr_Clear();