summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-12-14 10:25:32 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-12-15 17:51:29 (GMT)
commite1955231478df8990cf8b1f80438abf957c5d6f2 (patch)
tree8e2eb531a07558ee86081fa06c4742860a94acae
parentcb51c2157f870a5c83ae6d9435ec4b1004392bc9 (diff)
downloadQt-e1955231478df8990cf8b1f80438abf957c5d6f2.zip
Qt-e1955231478df8990cf8b1f80438abf957c5d6f2.tar.gz
Qt-e1955231478df8990cf8b1f80438abf957c5d6f2.tar.bz2
Add a warning about trying to release a timer ID that isn't active
Reviewed-By: Trust Me
-rw-r--r--src/corelib/kernel/qeventdispatcher_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_unix.cpp b/src/corelib/kernel/qeventdispatcher_unix.cpp
index f50994c..b2ccc68 100644
--- a/src/corelib/kernel/qeventdispatcher_unix.cpp
+++ b/src/corelib/kernel/qeventdispatcher_unix.cpp
@@ -501,6 +501,7 @@ bool QTimerInfoList::unregisterTimer(int timerId)
}
}
// id not found
+ qWarning("Application asked to unregister timer 0x%x which is not registered in this thread. Fix application.", timerId);
return false;
}