[chirp_devel] [PATCH] Wait until typing is complete to save RadioSettingValueString. Fixes #4675
Tom Hayward
Sun Mar 26 14:52:36 PDT 2017
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1490565113 25200
# Sun Mar 26 14:51:53 2017 -0700
# Node ID 32e5f4abeb7e7e864514d8183ad6335c35a631b9
# Parent 03c6a0176337955bb971a9e85869d2c2cb361c1a
Wait until typing is complete to save RadioSettingValueString. Fixes #4675
diff -r 03c6a0176337 -r 32e5f4abeb7e chirp/ui/settingsedit.py
--- a/chirp/ui/settingsedit.py Sun Mar 26 14:20:13 2017 -0700
+++ b/chirp/ui/settingsedit.py Sun Mar 26 14:51:53 2017 -0700
@@ -188,7 +188,8 @@
widget = gtk.Entry()
widget.set_width_chars(32)
widget.set_text(str(value).rstrip())
- widget.connect("changed", self._save_setting, value)
+ widget.connect("focus-out-event", lambda w, e, v:
+ self._save_setting(w, v), value)
else:
LOG.error("Unsupported widget type: %s" % value.__class__)
More information about the chirp_devel
mailing list