diff options
author | Matt Ettus | 2009-10-06 00:33:39 -0700 |
---|---|---|
committer | Matt Ettus | 2009-10-06 00:33:39 -0700 |
commit | 3f8026a00c261c788357b3a04f5b338a6cda4d0e (patch) | |
tree | da08ade9266b2205c79967601f201e22da6cbe9b /grc/gui/PropsDialog.py | |
parent | 61926130bef20051001f97abfae4c16ffc7963f6 (diff) | |
parent | c6b4290d73069e4e4f0f71b04a65b9670318e86d (diff) | |
download | gnuradio-3f8026a00c261c788357b3a04f5b338a6cda4d0e.tar.gz gnuradio-3f8026a00c261c788357b3a04f5b338a6cda4d0e.tar.bz2 gnuradio-3f8026a00c261c788357b3a04f5b338a6cda4d0e.zip |
Merge branch 'master' of http://gnuradio.org/git/gnuradio
Diffstat (limited to 'grc/gui/PropsDialog.py')
-rw-r--r-- | grc/gui/PropsDialog.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py index a7822b228..cc84fd088 100644 --- a/grc/gui/PropsDialog.py +++ b/grc/gui/PropsDialog.py @@ -93,15 +93,14 @@ 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 - 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') + #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()])) return self._hash != old_hash def _handle_changed(self, *args): |