URI: 
       texchange_rates plugin: hide widgets on close - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8e415d0f2a03cb81a65b3b8ef37bbe13c92f24a4
   DIR parent 620cc91aadf8ea93a5dab19692d13db175e59428
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Mon, 20 Apr 2015 01:27:17 +0200
       
       exchange_rates plugin: hide widgets on close
       
       Diffstat:
         M plugins/exchange_rate.py            |      18 +++++++++---------
       
       1 file changed, 9 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py
       t@@ -447,8 +447,8 @@ class Plugin(BasePlugin):
            def close(self):
                self.exchanger.stop()
                self.exchanger = None
       -        self.win.tabs.removeTab(1)
       -        self.win.tabs.insertTab(1, self.win.create_send_tab(), _('Send'))
       +        self.send_fiat_e.hide()
       +        self.receive_fiat_e.hide()
                self.win.update_status()
        
            def set_currencies(self, currency_options):
       t@@ -735,18 +735,18 @@ class Plugin(BasePlugin):
                return self.config.get("currency", "EUR")
        
            def add_send_edit(self):
       -        fiat_e = AmountEdit(self.fiat_unit)
       +        self.send_fiat_e = AmountEdit(self.fiat_unit)
                btc_e = self.win.amount_e
                fee_e = self.win.fee_e
       -        self.connect_fields(btc_e, fiat_e, fee_e)
       -        self.win.send_grid.addWidget(fiat_e, 4, 3, Qt.AlignHCenter)
       -        btc_e.frozen.connect(lambda: fiat_e.setFrozen(btc_e.isReadOnly()))
       +        self.connect_fields(btc_e, self.send_fiat_e, fee_e)
       +        self.win.send_grid.addWidget(self.send_fiat_e, 4, 3, Qt.AlignHCenter)
       +        btc_e.frozen.connect(lambda: self.send_fiat_e.setFrozen(btc_e.isReadOnly()))
        
            def add_receive_edit(self):
       -        fiat_e = AmountEdit(self.fiat_unit)
       +        self.receive_fiat_e = AmountEdit(self.fiat_unit)
                btc_e = self.win.receive_amount_e
       -        self.connect_fields(btc_e, fiat_e, None)
       -        self.win.receive_grid.addWidget(fiat_e, 2, 3, Qt.AlignHCenter)
       +        self.connect_fields(btc_e, self.receive_fiat_e, None)
       +        self.win.receive_grid.addWidget(self.receive_fiat_e, 2, 3, Qt.AlignHCenter)
        
            def connect_fields(self, btc_e, fiat_e, fee_e):
                def fiat_changed():