From a000f5594130b157a09a5f542b5333882310b488 Mon Sep 17 00:00:00 2001 From: Borgbyte Date: Thu, 17 Mar 2022 09:50:30 +0000 Subject: [PATCH] jade: unset wallet in login controller --- qml/JadeView.qml | 1 + src/jade/jadelogincontroller.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/JadeView.qml b/qml/JadeView.qml index 3d13f8e46..3aaf7e5d0 100644 --- a/qml/JadeView.qml +++ b/qml/JadeView.qml @@ -234,6 +234,7 @@ MainPage { RowLayout { Layout.fillWidth: false Layout.minimumWidth: 200 + spacing: constants.s1 Image { source: icons[self.network.key] sourceSize.width: 24 diff --git a/src/jade/jadelogincontroller.cpp b/src/jade/jadelogincontroller.cpp index b6929101b..acf81fb94 100644 --- a/src/jade/jadelogincontroller.cpp +++ b/src/jade/jadelogincontroller.cpp @@ -66,7 +66,8 @@ void JadeLoginController::setWallet(Wallet *wallet) Q_ASSERT(!wallet); m_wallet = nullptr; emit walletChanged(nullptr); - } else { + } + if (wallet) { Q_ASSERT(!m_wallet); Q_ASSERT(!m_active); m_wallet = wallet;