mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
StandardDropdown: fix for empty model
This commit is contained in:
parent
d8f9e7360f
commit
1cd7dd622f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue