Bug 744121 - Fix bogus issue with QObject::startTimer: QTimer cannot have a negative interval. r=cjones

This commit is contained in:
Oleg Romashin 2012-07-28 17:55:16 -04:00
parent 4d7bcc30d0
commit cb76490018

View File

@ -80,7 +80,7 @@ MessagePumpQt::scheduleDelayedIfNeeded(const Time& delayed_work_time)
// std::min only works on exact same types.
int laterMsecs = later.InMilliseconds() > std::numeric_limits<int>::max() ?
std::numeric_limits<int>::max() : later.InMilliseconds();
mTimer->start(laterMsecs);
mTimer->start(laterMsecs > 0 ? laterMsecs : 0);
}
void