aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-04-29 14:11:45 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-04-29 14:11:45 -0400
commit5c2076daa1bc71c9fb7f81e2a3e3fab8b293f592 (patch)
tree53ab8a2acf2dbc314b694bf09017b885c375367d /main.qml
parent578324348dc8d95a50294633114e22445077528c (diff)
parent7558a2324332371a43ee775af52bf6fec89cfe9e (diff)
downloadmonzero-gui-5c2076daa1bc71c9fb7f81e2a3e3fab8b293f592.tar.gz
monzero-gui-5c2076daa1bc71c9fb7f81e2a3e3fab8b293f592.tar.xz
monzero-gui-5c2076daa1bc71c9fb7f81e2a3e3fab8b293f592.zip
Merge pull request #3437
7558a23 main: remove minor switch/case code duplication (selsta)
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml6
1 files changed, 0 insertions, 6 deletions
diff --git a/main.qml b/main.qml
index 2674e3cc..1476b916 100644
--- a/main.qml
+++ b/main.qml
@@ -534,12 +534,6 @@ ApplicationWindow {
// try to resolve common wallet cache errors automatically
switch (wallet.errorString) {
case "basic_string::_M_replace_aux":
- walletManager.clearWalletCache(wallet.path);
- walletPassword = passwordDialog.password;
- appWindow.initialize();
- console.error("Repairing wallet cache with error: ", wallet.errorString);
- appWindow.showStatusMessage(qsTr("Repairing incompatible wallet cache. Resyncing wallet."),6);
- return;
case "std::bad_alloc":
walletManager.clearWalletCache(wallet.path);
walletPassword = passwordDialog.password;