summaryrefslogtreecommitdiff
path: root/grc/gui
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2009-09-14 22:37:55 -0700
committerJosh Blum <josh@joshknows.com>2009-09-14 22:37:55 -0700
commit3fb876217316bb8ac9a59fffc75bb3c523ae1704 (patch)
treee41e688faf9a5ff4e1c5255697ebb5df94c1ae85 /grc/gui
parent880a6ea7447978a2973422ac7abad6d99d7c1f56 (diff)
fixed issue where entry boxes lost focus (mishandling of hide changing)
Diffstat (limited to 'grc/gui')
-rw-r--r--grc/gui/PropsDialog.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py
index e3cd3a06f3..a7822b2284 100644
--- a/grc/gui/PropsDialog.py
+++ b/grc/gui/PropsDialog.py
@@ -91,6 +91,8 @@ class PropsDialog(gtk.Dialog):
"""
Have the params in this dialog changed?
Ex: Added, removed, type change, hide change...
+ To the props dialog, the hide setting of 'none' and 'part' are identical.
+ Therfore, the props dialog only cares if the hide setting is/not 'all'.
Make a hash that uniquely represents the params state.
@return true if changed
"""
@@ -99,7 +101,7 @@ class PropsDialog(gtk.Dialog):
for param in self._block.get_params():
self._hash ^= hash(param)
self._hash ^= hash(param.get_type())
- self._hash ^= hash(param.get_hide())
+ self._hash ^= hash(param.get_hide() == 'all')
return self._hash != old_hash
def _handle_changed(self, *args):