History

avoid cast that isn't always available

Seth Alves committed 9 years ago

Commit 4f672f91 parent bf7da711 file · +1 −1Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−1
@@ -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();