qt: normalize wallet path before lookup in window list
This commit is contained in:
committed by
SomberNight
parent
815a5272f0
commit
06a52d8acf
@@ -423,8 +423,9 @@ class ElectrumGui(BaseElectrumGui, Logger):
|
||||
d = wizard.get_wizard_data()
|
||||
|
||||
if d['wallet_is_open']:
|
||||
wallet_path = self.daemon._wallet_key_from_path(d['wallet_name'])
|
||||
for window in self.windows:
|
||||
if window.wallet.storage.path == d['wallet_name']:
|
||||
if window.wallet.storage.path == wallet_path:
|
||||
return window.wallet
|
||||
raise Exception('found by wizard but not here?!')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user