From 2bbcae449c0b71fa74d61384888c72a5e437296a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 6 Jun 2014 07:58:46 +0200 Subject: [PATCH] fix: call get_amount from get_outputs --- gui/qt/paytoedit.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py index 6352fb45..890cee9a 100644 --- 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