fix: remove gap limit stuff from settings dialog

This commit is contained in:
thomasv 2013-09-12 19:45:07 +02:00
parent eafdb42475
commit 71fae15352
2 changed files with 2 additions and 16 deletions

View File

@ -2107,20 +2107,6 @@ class ElectrumWindow(QMainWindow):
self.update_history_tab() self.update_history_tab()
self.update_status() 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 need_restart = False
lang_request = languages.keys()[lang_combo.currentIndex()] lang_request = languages.keys()[lang_combo.currentIndex()]

View File

@ -103,9 +103,9 @@ class PasswordDialog(QDialog):
def run(self): def run(self):
new_password = run_password_dialog(self, self.wallet, self.parent) new_password = run_password_dialog(self, self.wallet, self.parent)
if new_password: if new_password:
QMessageBox.information(parent, _('Success'), _('Password was updated successfully'), _('OK')) QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK'))
else: else:
QMessageBox.information(parent, _('Success'), _('This wallet is not encrypted'), _('OK')) QMessageBox.information(self.parent, _('Success'), _('This wallet is not encrypted'), _('OK'))