Skip to content

Commit

Permalink
Remove processEvents in PythonEngineWorker::doRun()
Browse files Browse the repository at this point in the history
  • Loading branch information
MinyazevR committed Dec 23, 2024
1 parent 14a119d commit f0b0861
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions trikScriptRunner/src/pythonEngineWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,8 @@ void PythonEngineWorker::doRun(const QString &script, const QFileInfo &scriptFil

auto wasError = mState != ready && PythonQt::self()->hadError();
mState = ready;
QCoreApplication::processEvents(); //dispatch events before reset
mScriptExecutionControl->reset();
releaseContext();
QCoreApplication::processEvents(); //dispatch events before emitting the signal
if (wasError) {
emit completed(mErrorMessage, 0);
} else {
Expand Down

0 comments on commit f0b0861

Please sign in to comment.