tshow confirmation dialog before opening incomplete wallet - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3b9f9d5320ff9353cf4f021881817bc8425c292b DIR parent 94c9bf3655d682bb70853629fb9b2a6d51d3cb7a HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 30 Jan 2015 13:36:20 +0100 show confirmation dialog before opening incomplete wallet Diffstat: M gui/qt/main_window.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -265,8 +265,6 @@ class ElectrumWindow(QMainWindow): self.show_message("file not found "+ filename) return - # close current wallet - self.close_wallet() # read wizard action try: t@@ -276,6 +274,14 @@ class ElectrumWindow(QMainWindow): return 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 if action is not None: import installwizard