texchange rates: call on_quotes in set_currency - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 3b445046440c9deeadc9bed016014b56bf476974
 (DIR) parent 54695964d30e8d426d873d53e47090325ad98949
 (HTM) Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 29 Jan 2016 12:50:38 +0100
       
       exchange rates: call on_quotes in set_currency
       
       Diffstat:
         M plugins/exchange_rate/exchange_rat… |       2 +-
         M plugins/exchange_rate/kivy.py       |       4 ++--
         M plugins/exchange_rate/qt.py         |       1 -
       
       3 files changed, 3 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/plugins/exchange_rate/exchange_rate.py b/plugins/exchange_rate/exchange_rate.py
       t@@ -306,6 +306,7 @@ class FxPlugin(BasePlugin, ThreadJob):
                self.ccy = ccy
                self.config.set_key('currency', ccy, True)
                self.get_historical_rates() # Because self.ccy changes
       +        self.on_quotes()
        
            def set_exchange(self, name):
                class_ = self.exchanges.get(name) or self.exchanges.values()[0]
       t@@ -319,7 +320,6 @@ class FxPlugin(BasePlugin, ThreadJob):
                # a quote refresh
                self.timeout = 0
                self.get_historical_rates()
       -        #self.on_fx_quotes()
        
            def on_quotes(self):
                pass
 (DIR) diff --git a/plugins/exchange_rate/kivy.py b/plugins/exchange_rate/kivy.py
       t@@ -27,11 +27,11 @@ class Plugin(FxPlugin):
                self.dispatcher = MyEventDispatcher()
        
            def on_quotes(self):
       -        self.print_error("on_quotes")
       +        self.print_error("on_quotes", self.ccy)
                self.dispatcher.dispatch('on_quotes')
        
            def on_history(self):
       -        self.print_error("on_history")
       +        self.print_error("on_history", self.ccy)
                self.dispatcher.dispatch('on_history')
        
            def on_close(self):
 (DIR) diff --git a/plugins/exchange_rate/qt.py b/plugins/exchange_rate/qt.py
       t@@ -86,7 +86,6 @@ class Plugin(FxPlugin):
                ccy = str(self.ccy_combo.currentText())
                if ccy and ccy != self.ccy:
                    self.set_currency(ccy)
       -            self.app.emit(SIGNAL('new_fx_quotes'))
                    self.hist_checkbox_update()
        
            def hist_checkbox_update(self):