aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-12-14 03:18:26 +0100
committerselsta <selsta@sent.at>2019-12-14 03:18:26 +0100
commit163fa733ae7c2f23b2e9e100ded0e9213b108e82 (patch)
tree061873739776d07dd6b7839a6eec31b139bea934 /wizard
parent46227bdad08e191d54e49813ee2f4c0e3c226f95 (diff)
downloadmonzero-gui-163fa733ae7c2f23b2e9e100ded0e9213b108e82.tar.gz
monzero-gui-163fa733ae7c2f23b2e9e100ded0e9213b108e82.tar.xz
monzero-gui-163fa733ae7c2f23b2e9e100ded0e9213b108e82.zip
WizardOpenWallet1: fix warning
Diffstat (limited to 'wizard')
-rw-r--r--wizard/WizardOpenWallet1.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/wizard/WizardOpenWallet1.qml b/wizard/WizardOpenWallet1.qml
index 466accf2..a3d0bcbc 100644
--- a/wizard/WizardOpenWallet1.qml
+++ b/wizard/WizardOpenWallet1.qml
@@ -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