summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2014-10-10 15:52:26 +0200
committerCaroline Chao <caroline.chao@digia.com>2014-10-13 10:10:20 +0200
commit8e6a165827f8933a06f400b9bc542efbcc16222d (patch)
tree111039645473e111263e7c6971068ef49c70adc1 /qml
parent07eaebaad80cdd3d125cf9460ac322e3bc975da4 (diff)
Don't submit "empty" feedback text when only rating is given
Change-Id: I021bec6fcb44c498ca66f1621ce362d716aedbaa Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'qml')
-rw-r--r--qml/components/Feedback.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/qml/components/Feedback.qml b/qml/components/Feedback.qml
index 62a9d24..3c726c4 100644
--- a/qml/components/Feedback.qml
+++ b/qml/components/Feedback.qml
@@ -167,7 +167,8 @@ Item {
text = "sending..."
Qt.inputMethod.hide()
Qt.inputMethod.commit()
- ModelsSingleton.saveFeedback(feedbackEdit.text, eventId, rating)
+ var feedbackText = feedbackEdit.text !== Theme.text.writeYourCommentHere ? feedbackEdit.text : ""
+ ModelsSingleton.saveFeedback(feedbackText, eventId, rating)
stack.pop()
stack.forceActiveFocus()
}