Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

Commit

Permalink
Fix bug related to bogus Qt signals.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibusko committed Jul 21, 2015
1 parent 2c84f28 commit 043d966
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specview/ui/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def _item_changed(self, item):
# to the corresponding astropy objects such as function parameter
# values and attributes, when their corresponding views on the tree
# are edited by the user. We have to test against the existence of
# attributes because sometimes a bogus Qt signal can trip this.
# attributes because sometimes a bogus Qt signal can trip this with
# an invalid item.
if hasattr(item, 'update_value') and hasattr(item, "_name"):
item.update_value(item._name, item.data())

Expand Down

0 comments on commit 043d966

Please sign in to comment.