Skip to content

Commit

Permalink
Small fix to checkbox connection code
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 19, 2017
1 parent 3470b3d commit aae08f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue/external/echo/qt/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def connect_checkable_button(instance, prop, widget):
"""
add_callback(instance, prop, widget.setChecked)
widget.toggled.connect(partial(setattr, instance, prop))
widget.setChecked(getattr(instance, prop))
widget.setChecked(getattr(instance, prop) or False)


def connect_text(instance, prop, widget):
Expand Down

0 comments on commit aae08f6

Please sign in to comment.