Browse Source

remove unused variable.

master
ThomasV 12 years ago
parent
commit
55770a93bf
  1. 4
      gui/qt/main_window.py

4
gui/qt/main_window.py

@ -134,7 +134,6 @@ class ElectrumWindow(QMainWindow):
set_language(config.get('language')) set_language(config.get('language'))
self.funds_error = False
self.completions = QStringListModel() self.completions = QStringListModel()
self.tabs = tabs = QTabWidget(self) self.tabs = tabs = QTabWidget(self)
@ -862,7 +861,6 @@ class ElectrumWindow(QMainWindow):
w.setLayout(grid) w.setLayout(grid)
def entry_changed( is_fee ): def entry_changed( is_fee ):
self.funds_error = False
if self.amount_e.is_shortcut: if self.amount_e.is_shortcut:
self.amount_e.is_shortcut = False self.amount_e.is_shortcut = False
@ -881,6 +879,7 @@ class ElectrumWindow(QMainWindow):
if not is_fee: fee = None if not is_fee: fee = None
if amount is None: if amount is None:
self.fee_e.setAmount(None)
return return
# assume that there will be 2 outputs (one for change) # assume that there will be 2 outputs (one for change)
inputs, total, fee = self.wallet.choose_tx_inputs(amount, fee, 2, coins = self.get_coins()) inputs, total, fee = self.wallet.choose_tx_inputs(amount, fee, 2, coins = self.get_coins())
@ -893,7 +892,6 @@ class ElectrumWindow(QMainWindow):
else: else:
palette = QPalette() palette = QPalette()
palette.setColor(self.amount_e.foregroundRole(), QColor('red')) palette.setColor(self.amount_e.foregroundRole(), QColor('red'))
self.funds_error = True
text = _( "Not enough funds" ) text = _( "Not enough funds" )
c, u = self.wallet.get_frozen_balance() c, u = self.wallet.get_frozen_balance()
if c+u: text += ' (' + self.format_amount(c+u).strip() + ' ' + self.base_unit() + ' ' +_("are frozen") + ')' if c+u: text += ' (' + self.format_amount(c+u).strip() + ' ' + self.base_unit() + ' ' +_("are frozen") + ')'

Loading…
Cancel
Save