commit 9ee946c797931770f1580153e61059555427d156
parent 3c2971dd7b3084dbf078463ff9f85855dc13f438
Author: ThomasV <thomasv@gitorious>
Date: Thu, 7 Jun 2012 19:52:26 +0200
show error messages
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/lib/gui_qt.py b/lib/gui_qt.py
@@ -996,10 +996,15 @@ class ElectrumWindow(QMainWindow):
try:
n = int(e.text())
except:
+ QMessageBox.warning(self, _('Error'), _('Invalid Value'), _('OK'))
return
- self.wallet.change_gap_limit(n)
- self.update_receive_tab()
+ r = self.wallet.change_gap_limit(n)
+ if r:
+ self.update_receive_tab()
+ else:
+ QMessageBox.warning(self, _('Error'), _('Invalid Value'), _('OK'))
+