From 2d2a2c27a882ee179f052071087f84c8dc7b2840 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Thu, 5 Feb 2015 22:06:14 +0100 Subject: [PATCH] Select the same wallets as the one used to try sending money --- src/cutecoin/gui/currency_tab.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cutecoin/gui/currency_tab.py b/src/cutecoin/gui/currency_tab.py index db999f38..4f61863c 100644 --- a/src/cutecoin/gui/currency_tab.py +++ b/src/cutecoin/gui/currency_tab.py @@ -250,6 +250,9 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget): dialog = TransferMoneyDialog(self.app.current_account, self.password_asker) dialog.accepted.connect(self.refresh_wallets) + sender = transfer.metadata['issuer'] + wallet_index = [w.pubkey for w in self.app.current_account.wallets].index(sender) + dialog.combo_wallets.setCurrentIndex(wallet_index) dialog.edit_pubkey.setText(transfer.metadata['receiver']) dialog.combo_community.setCurrentText(self.community.name()) dialog.spinbox_amount.setValue(transfer.metadata['amount']) -- GitLab