aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/StandardDropdown.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml
index f5c81796..b3820501 100644
--- a/components/StandardDropdown.qml
+++ b/components/StandardDropdown.qml
@@ -107,7 +107,7 @@ Item {
font.bold: true
font.pixelSize: 12
color: "#FFFFFF"
- text: repeater.model.get(column.currentIndex).column1
+ text: column.currentIndex < repeater.model.rowCount() ? repeater.model.get(column.currentIndex).column1 : ""
}
Text {
@@ -119,7 +119,7 @@ Item {
font.family: "Arial"
font.pixelSize: 12
color: "#FFFFFF"
- text: repeater.model.get(column.currentIndex).column2
+ text: column.currentIndex < repeater.model.rowCount() ? repeater.model.get(column.currentIndex).column2 : ""
property int w: 0
Component.onCompleted: w = implicitWidth