tfix #1755 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 7a8635589b39b3554f443ae44e290eb1921388a4
DIR parent 375be7389430d95934878be1c0be69bfb148a49e
HTML Author: ThomasV <thomasv@electrum.org>
Date: Mon, 30 May 2016 07:57:46 +0200
fix #1755
Diffstat:
M lib/wizard.py | 14 ++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
---
DIR diff --git a/lib/wizard.py b/lib/wizard.py
t@@ -147,6 +147,20 @@ class WizardBase(PrintError):
wallet = Wallet(storage)
if wallet.imported_keys:
self.update_wallet_format(wallet)
+ action = wallet.get_action()
+ if action != 'new':
+ self.hide()
+ path = storage.path
+ msg = _("The file '%s' contains an incompletely created wallet.\n"
+ "Do you want to complete its creation now?") % path
+ if not self.question(msg):
+ if self.question(_("Do you want to delete '%s'?") % path):
+ import os
+ os.remove(path)
+ self.show_warning(_('The file was removed'))
+ return
+ return
+ self.show()
else:
cr, wallet = self.create_or_restore(storage)
if not wallet: