show confirmation dialog before opening incomplete wallet
This commit is contained in:
parent
94c9bf3655
commit
3b9f9d5320
|
@ -265,8 +265,6 @@ class ElectrumWindow(QMainWindow):
|
||||||
self.show_message("file not found "+ filename)
|
self.show_message("file not found "+ filename)
|
||||||
return
|
return
|
||||||
|
|
||||||
# close current wallet
|
|
||||||
self.close_wallet()
|
|
||||||
|
|
||||||
# read wizard action
|
# read wizard action
|
||||||
try:
|
try:
|
||||||
|
@ -276,6 +274,14 @@ class ElectrumWindow(QMainWindow):
|
||||||
return
|
return
|
||||||
action = wallet.get_action()
|
action = wallet.get_action()
|
||||||
|
|
||||||
|
# ask for confirmation
|
||||||
|
if action is not None:
|
||||||
|
if not self.question(_("This file contains an incompletely created wallet.\nDo you want to complete its creation now?")):
|
||||||
|
return
|
||||||
|
|
||||||
|
# close current wallet
|
||||||
|
self.close_wallet()
|
||||||
|
|
||||||
# run wizard
|
# run wizard
|
||||||
if action is not None:
|
if action is not None:
|
||||||
import installwizard
|
import installwizard
|
||||||
|
|
Loading…
Reference in New Issue