projects
/
profile
/
ivi
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f01821
)
Fix SignalSpy disconnect issue
author
Charles Yin
<yinyunqiao@gmail.com>
Wed, 7 Mar 2012 13:12:26 +0000
(23:12 +1000)
committer
Qt by Nokia
<qt-info@nokia.com>
Tue, 13 Mar 2012 01:02:49 +0000
(
02:02
+0100)
Task-number:QTBUG-21083
Change-Id: Ic61472d886bf7c46eb37dc44b5e5ceb401917087
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/imports/testlib/SignalSpy.qml
patch
|
blob
|
history
diff --git
a/src/imports/testlib/SignalSpy.qml
b/src/imports/testlib/SignalSpy.qml
index
8b74132
..
539cb17
100644
(file)
--- a/
src/imports/testlib/SignalSpy.qml
+++ b/
src/imports/testlib/SignalSpy.qml
@@
-92,7
+92,9
@@
Item {
function qtest_update() {
if (qtest_prevTarget != null) {
- qtest_prevTarget[qtest_prevSignalName].disconnect(spy, "qtest_activated")
+ var prevFunc = qtest_prevTarget[qtest_prevSignalName]
+ if (prevFunc)
+ prevFunc.disconnect(spy.qtest_activated)
qtest_prevTarget = null
qtest_prevSignalName = ""
}