git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3c2971d
)
show error messages
author
ThomasV
<thomasv@gitorious>
Thu, 7 Jun 2012 17:52:26 +0000 (19:52 +0200)
committer
ThomasV
<thomasv@gitorious>
Thu, 7 Jun 2012 17:52:26 +0000 (19:52 +0200)
lib/gui_qt.py
patch
|
blob
|
history
diff --git
a/lib/gui_qt.py
b/lib/gui_qt.py
index
60ce562
..
e9d99ba
100644
(file)
--- 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'))
+