URI: 
       tMerge pull request #878 from imrehg/fee - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 49c0a3a08fb8a14402bd2f91c02c827ab12d6b8d
   DIR parent 60e5450a0e00625794d986bd1b1b9e1dcdb26b65
  HTML Author: ThomasV <thomasv1@gmx.de>
       Date:   Fri, 10 Oct 2014 10:13:47 +0200
       
       Merge pull request #878 from imrehg/fee
       
       Fix "Invalid Fee" issue when start with fiat in send (exchange rate plugin)
       Diffstat:
         M plugins/exchange_rate.py            |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py
       t@@ -662,6 +662,7 @@ class Plugin(BasePlugin):
                    if exchange_rate is not None:
                        btc_amount = fiat_amount/exchange_rate
                        self.btc_e.setAmount(int(btc_amount*Decimal(100000000)))
       +                self.btc_e.textEdited.emit("")
                self.fiat_e.textEdited.connect(fiat_changed)
                def btc_changed():
                    btc_amount = self.btc_e.get_amount()
       t@@ -670,7 +671,9 @@ class Plugin(BasePlugin):
                        return
                    fiat_amount = self.exchanger.exchange(Decimal(btc_amount)/Decimal(100000000), self.fiat_unit())
                    if fiat_amount is not None:
       +                pos = self.fiat_e.cursorPosition()
                        self.fiat_e.setText("%.2f"%fiat_amount)
       +                self.fiat_e.setCursorPosition(pos)
                self.btc_e.textEdited.connect(btc_changed)
                self.btc_e.frozen.connect(lambda: self.fiat_e.setFrozen(self.btc_e.isReadOnly()))
                self.win.send_grid.addWidget(self.fiat_e, 4, 3, Qt.AlignHCenter)