diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-11-09 20:47:35 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-11-09 20:47:35 +0200 |
| commit | 2bb20cd67e70abeffa4fea1b879c61502379c262 (patch) | |
| tree | 3dd43226de3b5cb1562c035a029aea6a0d58febd /main.qml | |
| parent | 99dbbc469c8ac12148d0b6796bf9f658fc986d66 (diff) | |
| parent | 5c330b071a4dd1b17917f6aa2031406f94fbf4a3 (diff) | |
| download | monzero-gui-2bb20cd67e70abeffa4fea1b879c61502379c262.tar.gz monzero-gui-2bb20cd67e70abeffa4fea1b879c61502379c262.tar.xz monzero-gui-2bb20cd67e70abeffa4fea1b879c61502379c262.zip | |
Merge pull request #125
5c330b0 remove PR #111 dependency (Jacob Brydolf)
af933da disconnect slots before reconnecting (Jacob Brydolf)
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -148,6 +148,12 @@ ApplicationWindow { translationManager.setLanguage(locale.split("_")[0]); } + // disconnect handlers before connecting + middlePanel.paymentClicked.disconnect(handlePayment); + // TODO: remove if statement when PR #111 is merged + if(typeof(handleCheckPayment) !== "undefined") { + middlePanel.checkPaymentClicked.disconnect(handleCheckPayment); + } middlePanel.paymentClicked.connect(handlePayment); // basicPanel.paymentClicked.connect(handlePayment); middlePanel.checkPaymentClicked.connect(handleCheckPayment); @@ -192,11 +198,21 @@ ApplicationWindow { function connectWallet(wallet) { showProcessingSplash() currentWallet = wallet + + // Disconnect before connecting + currentWallet.refreshed.disconnect(onWalletRefresh) + currentWallet.updated.disconnect(onWalletUpdate) + currentWallet.newBlock.disconnect(onWalletNewBlock) + currentWallet.moneySpent.disconnect(onWalletMoneySent) + currentWallet.moneyReceived.disconnect(onWalletMoneyReceived) + currentWallet.refreshed.connect(onWalletRefresh) currentWallet.updated.connect(onWalletUpdate) currentWallet.newBlock.connect(onWalletNewBlock) currentWallet.moneySpent.connect(onWalletMoneySent) currentWallet.moneyReceived.connect(onWalletMoneyReceived) + + console.log("initializing with daemon address: ", persistentSettings.daemon_address) console.log("Recovering from seed: ", persistentSettings.is_recovering) console.log("restore Height", persistentSettings.restore_height) |
