Avoid detaching in QBasicTimer
Amends da12a40b8b2c2d212412a9db6d7971dc43bce6e6 Change-Id: I2a9e46844a88f7ee239c7306abca3d2c8f7b53d9 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
a6e8ee141d
commit
062f6cba79
@ -390,7 +390,7 @@ qint64 QTimerInfoList::timerRemainingTime(int timerId)
|
|||||||
repairTimersIfNeeded();
|
repairTimersIfNeeded();
|
||||||
timespec tm = {0, 0};
|
timespec tm = {0, 0};
|
||||||
|
|
||||||
for (const auto *t : *this) {
|
for (const auto *t : qAsConst(*this)) {
|
||||||
if (t->id == timerId) {
|
if (t->id == timerId) {
|
||||||
if (currentTime < t->timeout) {
|
if (currentTime < t->timeout) {
|
||||||
// time to wait
|
// time to wait
|
||||||
|
Loading…
x
Reference in New Issue
Block a user