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 | 1076 | QTimer timer; |
| 1077 | 1077 | timer.setSingleShot(true); |
| 1078 | 1078 | connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); |
| 1079 | − timer.start(sleepFor); | |
| 1079 | + timer.start(sleepFor.count()); | |
| 1080 | 1080 | loop.exec(); |
| 1081 | 1081 | } else { |
| 1082 | 1082 | QCoreApplication::processEvents(); |