summaryrefslogtreecommitdiff
path: root/grc/gui
diff options
context:
space:
mode:
authorJohnathan Corgan <jcorgan@corganenterprises.com>2009-09-25 12:27:29 -0700
committerJohnathan Corgan <jcorgan@corganenterprises.com>2009-09-25 12:27:29 -0700
commit5d1ce94095bd2120a2fd2df087aae45085f53989 (patch)
treea4ec01ea3abe30d6d150cfe54409f7684590a487 /grc/gui
parent06281feea16143ca97a77348f72e1c6dd0616c57 (diff)
Revert "Merge branch 'grc' of http://gnuradio.org/git/jblum"
This reverts commit 06281feea16143ca97a77348f72e1c6dd0616c57.
Diffstat (limited to 'grc/gui')
-rw-r--r--grc/gui/PropsDialog.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py
index cc84fd0888..a7822b2284 100644
--- a/grc/gui/PropsDialog.py
+++ b/grc/gui/PropsDialog.py
@@ -93,14 +93,15 @@ class PropsDialog(gtk.Dialog):
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.
+ Make a hash that uniquely represents the params state.
@return true if changed
"""
old_hash = self._hash
- #create a tuple of things from each param that affects the params box
- self._hash = hash(tuple([(
- hash(param), param.get_type(), param.get_hide() == 'all',
- ) for param in self._block.get_params()]))
+ self._hash = 0
+ for param in self._block.get_params():
+ self._hash ^= hash(param)
+ self._hash ^= hash(param.get_type())
+ self._hash ^= hash(param.get_hide() == 'all')
return self._hash != old_hash
def _handle_changed(self, *args):