tSmall fix to make sure the cursor stays where it is using the Pro GUI - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9407dd3f2f0bab32b96b3d5d3682d7cb21e6bb85 DIR parent 3f499d7048bd5053d8ed75233b26667145c28520 HTML Author: Maran <maran.hidskes@gmail.com> Date: Tue, 4 Sep 2012 19:54:01 +0200 Small fix to make sure the cursor stays where it is using the Pro GUI Diffstat: M lib/gui_qt.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py t@@ -54,6 +54,7 @@ ALIAS_REGEXP = '^(|([\w\-\.]+)@)((\w[\w\-]+\.)+[\w\-]+)$' def numbify(entry, is_int = False): text = unicode(entry.text()).strip() + pos = entry.cursorPosition() chars = '0123456789' if not is_int: chars +='.' s = ''.join([i for i in text if i in chars]) t@@ -72,6 +73,7 @@ def numbify(entry, is_int = False): except: amount = None entry.setText(s) + entry.setCursorPosition(pos) return amount