avoid cast that isn't always available

This commit is contained in:
Seth Alves 2017-06-26 16:03:39 -07:00
parent bf7da71eaf
commit 4f672f93d2

View file

@ -1076,7 +1076,7 @@ void ScriptEngine::run() {
QTimer timer;
timer.setSingleShot(true);
connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
timer.start(sleepFor);
timer.start(sleepFor.count());
loop.exec();
} else {
QCoreApplication::processEvents();