diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index e49f88ec9..13ad78acc 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -121,7 +121,8 @@ ApplicationWindow MouseArea { anchors.fill: parent - enabled: Daemon.currentWallet && (!stack.currentItem.title || stack.currentItem.title == Daemon.currentWallet.name) + enabled: Daemon.currentWallet && + (!stack.currentItem || !stack.currentItem.title || stack.currentItem.title == Daemon.currentWallet.name) onClicked: { stack.getRoot().menu.open() // open wallet-menu stack.getRoot().menu.y = toolbar.height @@ -139,14 +140,15 @@ ApplicationWindow Image { Layout.preferredWidth: constants.iconSizeSmall Layout.preferredHeight: constants.iconSizeSmall - visible: Daemon.currentWallet && (!stack.currentItem.title || stack.currentItem.title == Daemon.currentWallet.name) + visible: Daemon.currentWallet && + (!stack.currentItem || !stack.currentItem.title || stack.currentItem.title == Daemon.currentWallet.name) source: '../../icons/wallet.png' } Label { Layout.fillWidth: true Layout.preferredHeight: Math.max(implicitHeight, toolbarTopLayout.height) - text: stack.currentItem.title + text: stack.currentItem && stack.currentItem.title ? stack.currentItem.title : Daemon.currentWallet.name elide: Label.ElideRight