diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-07-09 07:06:22 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-07-09 07:06:22 (GMT) |
commit | 3399066881c42d1dd6fda6b3ae8cf3fc8961929b (patch) | |
tree | 57f623a4bb541ed0c7499a7fa6205b87f40c0312 /src/declarative | |
parent | ce0ff6de3d6f8715f6b7d18cdcb2f4b6a3a0c548 (diff) | |
download | Qt-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.cpp | 5 |
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())); } } |