Browse Source
Merge pull request #3235 from SomberNight/fix_delete_passworded_wallets
fix: deleting a passworded wallet did not work
3.0.x
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
7 deletions
-
gui/qt/main_window.py
|
@ -1871,14 +1871,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): |
|
|
@protected |
|
|
@protected |
|
|
def _delete_wallet(self, password): |
|
|
def _delete_wallet(self, password): |
|
|
wallet_path = self.wallet.storage.path |
|
|
wallet_path = self.wallet.storage.path |
|
|
dirname = os.path.dirname(wallet_path) |
|
|
|
|
|
basename = os.path.basename(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.gui_object.daemon.stop_wallet(wallet_path) |
|
|
self.close() |
|
|
self.close() |
|
|
os.unlink(wallet_path) |
|
|
os.unlink(wallet_path) |
|
|