electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 55770a93bff3ea914133d7591080a75060a44418
parent f4dfec4565af18094e2626f4b0ba174cabf330e1
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 24 Jun 2014 18:02:19 +0200

remove unused variable.

Diffstat:
Mgui/qt/main_window.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -134,7 +134,6 @@ class ElectrumWindow(QMainWindow): set_language(config.get('language')) - self.funds_error = False self.completions = QStringListModel() self.tabs = tabs = QTabWidget(self) @@ -862,7 +861,6 @@ class ElectrumWindow(QMainWindow): w.setLayout(grid) def entry_changed( is_fee ): - self.funds_error = False if self.amount_e.is_shortcut: self.amount_e.is_shortcut = False @@ -881,6 +879,7 @@ class ElectrumWindow(QMainWindow): if not is_fee: fee = None if amount is None: + self.fee_e.setAmount(None) return # 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()) @@ -893,7 +892,6 @@ class ElectrumWindow(QMainWindow): else: palette = QPalette() palette.setColor(self.amount_e.foregroundRole(), QColor('red')) - self.funds_error = True text = _( "Not enough funds" ) c, u = self.wallet.get_frozen_balance() if c+u: text += ' (' + self.format_amount(c+u).strip() + ' ' + self.base_unit() + ' ' +_("are frozen") + ')'