Browse Source

qt: normalize wallet path before lookup in window list

master
Sander van Grieken 2 years ago
parent
commit
41bb849f8a
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 3
      electrum/gui/qt/__init__.py

3
electrum/gui/qt/__init__.py

@ -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?!')

Loading…
Cancel
Save