electrum

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

commit 71fae15352f986dd08388c80d13468f61bc0cbe2
parent eafdb42475be0b5d06ae929d031b791f77c9346b
Author: thomasv <thomasv@gitorious>
Date:   Thu, 12 Sep 2013 19:45:07 +0200

fix: remove gap limit stuff from settings dialog

Diffstat:
Mgui/gui_classic/main_window.py | 14--------------
Mgui/gui_classic/password_dialog.py | 4++--
2 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/gui/gui_classic/main_window.py b/gui/gui_classic/main_window.py @@ -2107,20 +2107,6 @@ class ElectrumWindow(QMainWindow): self.update_history_tab() self.update_status() - try: - n = int(gap_e.text()) - except: - QMessageBox.warning(self, _('Error'), _('Invalid value'), _('OK')) - return - - if self.wallet.gap_limit != n: - r = self.wallet.change_gap_limit(n) - if r: - self.update_receive_tab() - self.config.set_key('gap_limit', self.wallet.gap_limit, True) - else: - QMessageBox.warning(self, _('Error'), _('Invalid value'), _('OK')) - need_restart = False lang_request = languages.keys()[lang_combo.currentIndex()] diff --git a/gui/gui_classic/password_dialog.py b/gui/gui_classic/password_dialog.py @@ -103,9 +103,9 @@ class PasswordDialog(QDialog): def run(self): new_password = run_password_dialog(self, self.wallet, self.parent) if new_password: - QMessageBox.information(parent, _('Success'), _('Password was updated successfully'), _('OK')) + QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK')) else: - QMessageBox.information(parent, _('Success'), _('This wallet is not encrypted'), _('OK')) + QMessageBox.information(self.parent, _('Success'), _('This wallet is not encrypted'), _('OK'))