fix: deleting a passworded wallet did not work

This commit is contained in:
SomberNight 2017-11-07 14:08:46 +01:00
parent d599f11cce
commit 83443732c4
1 changed files with 0 additions and 7 deletions

View File

@ -1871,14 +1871,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
@protected
def _delete_wallet(self, password):
wallet_path = self.wallet.storage.path
dirname = os.path.dirname(wallet_path)
basename = os.path.basename(wallet_path)
if self.wallet.has_password():
try:
self.wallet.check_password(pw)
except:
self.show_error("Invalid Password")
return
self.gui_object.daemon.stop_wallet(wallet_path)
self.close()
os.unlink(wallet_path)