WizardOpenWallet1: fix warning

This commit is contained in:
selsta 2019-12-14 03:18:26 +01:00
parent 46227bdad0
commit 163fa733ae
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ Rectangle {
color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardOpenWallet1"
property int walletCount: walletKeysFilesModel.rowCount()
property int walletCount: walletKeysFilesModel ? walletKeysFilesModel.rowCount() : 0
ColumnLayout {
id: pageRoot
@ -69,7 +69,7 @@ Rectangle {
}
GridLayout {
visible: walletKeysFilesModel.rowCount() > 0
visible: (walletKeysFilesModel ? walletKeysFilesModel.rowCount() : 0) > 0
Layout.topMargin: 10
Layout.fillWidth: true
columnSpacing: 20