From 83443732c410a5c5a808c0efa3f2cd7f0d465501 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 7 Nov 2017 14:08:46 +0100 Subject: [PATCH] fix: deleting a passworded wallet did not work --- gui/qt/main_window.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 1cfd6e67..8fe214f9 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -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)