aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-09-05 06:18:27 +0200
committerselsta <selsta@sent.at>2021-09-05 06:18:49 +0200
commit841f06152015b910bc0ccc09205a4a483fce3215 (patch)
tree416e01209c0ed0321a6b166209d0ea70c6c0d411 /main.qml
parent113efbfdf093401d3044ce370b7039ea8cc596bf (diff)
downloadmonzero-gui-841f06152015b910bc0ccc09205a4a483fce3215.tar.gz
monzero-gui-841f06152015b910bc0ccc09205a4a483fce3215.tar.xz
monzero-gui-841f06152015b910bc0ccc09205a4a483fce3215.zip
main: remove outdated code
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml21
1 files changed, 0 insertions, 21 deletions
diff --git a/main.qml b/main.qml
index e736487e..ac721900 100644
--- a/main.qml
+++ b/main.qml
@@ -310,27 +310,6 @@ ApplicationWindow {
function connectWallet(wallet) {
currentWallet = wallet
- // TODO:
- // When the wallet variable is undefined, it yields a zero balance.
- // This can scare users, restart the GUI (as a quick fix).
- //
- // To reproduce, follow these steps:
- // 1) Open the GUI, load up a wallet that has a balance
- // 2) Settings -> close wallet
- // 3) Create a new wallet
- // 4) Settings -> close wallet
- // 5) Open the wallet from step 1
-
- if(!wallet || wallet === undefined || wallet.path === undefined){
- informationPopup.title = qsTr("Error") + translationManager.emptyString;
- informationPopup.text = qsTr("Couldn't open wallet: ") + 'please restart GUI.';
- informationPopup.icon = StandardIcon.Critical
- informationPopup.open()
- informationPopup.onCloseCallback = function() {
- appWindow.close();
- }
- }
-
walletName = usefulName(wallet.path)
viewOnly = currentWallet.viewOnly;