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
10761076 QTimer timer;
10771077 timer.setSingleShot(true);
10781078 connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
1079− timer.start(sleepFor);
1079+ timer.start(sleepFor.count());
10801080 loop.exec();
10811081 } else {
10821082 QCoreApplication::processEvents();