diff options
| author | moneromooo.monero <moneromooo.monero@users.noreply.github.com> | 2016-12-30 10:10:02 +0000 |
|---|---|---|
| committer | moneromooo.monero <moneromooo.monero@users.noreply.github.com> | 2016-12-30 10:10:54 +0000 |
| commit | 1cd7dd622f641c852acf37e6b661230f1c914b84 (patch) | |
| tree | a635fbb753c15084d5253de61abb25233c8712ed | |
| parent | d8f9e7360fdbab910283c465aafe36149b1d7f26 (diff) | |
| download | monzero-gui-1cd7dd622f641c852acf37e6b661230f1c914b84.tar.gz monzero-gui-1cd7dd622f641c852acf37e6b661230f1c914b84.tar.xz monzero-gui-1cd7dd622f641c852acf37e6b661230f1c914b84.zip | |
StandardDropdown: fix for empty model
| -rw-r--r-- | components/StandardDropdown.qml | 4 |
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 |
