check if fiat button exists on send tab before updating its caption with the newly selected fiat currency

This commit is contained in:
Darrin Daigle 2014-03-23 13:33:54 -05:00
parent bc3bcc20dc
commit 7bfd170ad9
1 changed files with 6 additions and 1 deletions

View File

@ -430,7 +430,12 @@ class Plugin(BasePlugin):
hist_checkbox.setChecked(False) hist_checkbox.setChecked(False)
hist_checkbox.setEnabled(False) hist_checkbox.setEnabled(False)
self.win.update_status() self.win.update_status()
self.fiat_button.setText(cur_request) try:
self.fiat_button
except:
pass
else:
self.fiat_button.setText(cur_request)
def disable_check(): def disable_check():
hist_checkbox.setChecked(False) hist_checkbox.setChecked(False)