1
0

qt: normalize wallet path before lookup in window list

This commit is contained in:
Sander van Grieken
2024-04-24 13:16:12 +02:00
committed by SomberNight
parent 815a5272f0
commit 06a52d8acf

View File

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