summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-07-09 07:06:22 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-07-09 07:06:22 (GMT)
commit3399066881c42d1dd6fda6b3ae8cf3fc8961929b (patch)
tree57f623a4bb541ed0c7499a7fa6205b87f40c0312 /src/declarative
parentce0ff6de3d6f8715f6b7d18cdcb2f4b6a3a0c548 (diff)
downloadQt-3399066881c42d1dd6fda6b3ae8cf3fc8961929b.zip
Qt-3399066881c42d1dd6fda6b3ae8cf3fc8961929b.tar.gz
Qt-3399066881c42d1dd6fda6b3ae8cf3fc8961929b.tar.bz2
Fix QFxTextEdit cursorDelegate auto test properly
Also fixes the minor bug that it found.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/fx/qfxtextedit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxtextedit.cpp b/src/declarative/fx/qfxtextedit.cpp
index ef56cc8..c2bda6f 100644
--- a/src/declarative/fx/qfxtextedit.cpp
+++ b/src/declarative/fx/qfxtextedit.cpp
@@ -521,8 +521,9 @@ void QFxTextEdit::setCursorDelegate(QmlComponent* c)
if(c && c->isReady()){
loadCursorDelegate();
}else{
- connect(c, SIGNAL(statusChanged()),
- this, SLOT(loadCursorDelegate()));
+ if(c)
+ connect(c, SIGNAL(statusChanged()),
+ this, SLOT(loadCursorDelegate()));
}
}