Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1076,7 +1076,7 @@ void ScriptEngine::run() { · 1075 unmodified lines | |||
| 1076 | QTimer timer; | 1076 | QTimer timer; |
| 1077 | timer.setSingleShot(true); | 1077 | timer.setSingleShot(true); |
| 1078 | connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); | 1078 | connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); |
| 1079 | timer.start(sleepFor); | 1079 | timer.start(sleepFor.count()); |
| 1080 | loop.exec(); | 1080 | loop.exec(); |
| 1081 | } else { | 1081 | } else { |
| 1082 | QCoreApplication::processEvents(); | 1082 | QCoreApplication::processEvents(); |