fix #1755
This commit is contained in:
parent
375be73894
commit
7a8635589b
|
@ -147,6 +147,20 @@ class WizardBase(PrintError):
|
||||||
wallet = Wallet(storage)
|
wallet = Wallet(storage)
|
||||||
if wallet.imported_keys:
|
if wallet.imported_keys:
|
||||||
self.update_wallet_format(wallet)
|
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:
|
else:
|
||||||
cr, wallet = self.create_or_restore(storage)
|
cr, wallet = self.create_or_restore(storage)
|
||||||
if not wallet:
|
if not wallet:
|
||||||
|
|
Loading…
Reference in New Issue