summaryrefslogtreecommitdiff
path: root/src/controls/ComboBox.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-10-22 13:14:37 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-22 13:35:49 +0200
commit11873dd28fc8ee2c756b79116f58eadf9f81d106 (patch)
treed9e8e6fb9ed51f1b361e7517cfecdcf592a14c42 /src/controls/ComboBox.qml
parent6b3e530f97b555a1746042480fea8d803e8bb301 (diff)
downloadqtquickcontrols-11873dd28fc8ee2c756b79116f58eadf9f81d106.tar.gz
Fix warning in ComboBox when model is empty
We cannot assign null to a QString property. Change-Id: I659a7edcefe586e37330ee56ec52756585c147e1 Task-number: QTBUG-34164 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/ComboBox.qml')
-rw-r--r--src/controls/ComboBox.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 5a8b2cef..67a24f4f 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -336,7 +336,7 @@ Control {
SystemPalette { id: syspal }
property bool blockUpdate: false
- property string prevText: null
+ property string prevText
function find (text, searchType) {
for (var i = 0 ; i < popupItems.count ; ++i) {