commit 2bbcae449c0b71fa74d61384888c72a5e437296a parent 38a6747eff4d8202c7a7a9b65f1c54f7341d7c6e Author: ThomasV <thomasv@gitorious> Date: Fri, 6 Jun 2014 07:58:46 +0200 fix: call get_amount from get_outputs Diffstat:
M | gui/qt/paytoedit.py | | | 14 | ++++++++------ |
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py @@ -92,12 +92,6 @@ class PayToEdit(QTextEdit): if self.payto_address: self.unlock_amount() - try: - amount = self.amount_edit.get_amount() - except: - amount = None - - self.outputs = [(self.payto_address, amount)] return for line in lines: @@ -124,6 +118,14 @@ class PayToEdit(QTextEdit): def get_outputs(self): + if self.payto_address: + try: + amount = self.amount_edit.get_amount() + except: + amount = None + + self.outputs = [(self.payto_address, amount)] + return self.outputs