kivy: fix wallet selection dialog

This commit is contained in:
ThomasV 2016-01-19 16:11:23 +01:00
parent 702924a07e
commit b1f9f7faed
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ class WalletDialog(Factory.Popup):
def cb(text):
if text:
app.load_wallet_by_name(os.path.join(dirname, text))
if self.path:
app.load_wallet_by_name(self.path)
if self.ids.wallet_selector.selection:
app.load_wallet_by_name(self.ids.wallet_selector.selection[0])
else:
d = LabelDialog(_('Enter wallet name'), '', cb)
d.open()