mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 744121 - Fix bogus issue with QObject::startTimer: QTimer cannot have a negative interval. r=cjones
This commit is contained in:
parent
4d7bcc30d0
commit
cb76490018
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user