widgets: use qtutils.BlockSignals to manage blockSignals(bool)
commitb34db29178fad6344c0a1f0adb6ffb0638253f68
authorDavid Aguilar <davvid@gmail.com>
Sun, 11 Jul 2021 18:33:12 +0000 (11 11:33 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sun, 11 Jul 2021 22:25:09 +0000 (11 15:25 -0700)
tree7f820be899397e2314234b11ad4bce4bf8b1e4e6
parent5e2a24d1a9671a5729da5cb34c38d808565260a4
widgets: use qtutils.BlockSignals to manage blockSignals(bool)

We have nice things. The BlockSignals context manager makes it
easy to manage a widget's blockSignals(bool) state.

Leverage qtutils.BlockSignals to make the code more robust.
Make it impossible to forget to call blockSignals(True) after
doing blockSignals(False) by using the context manager.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/widgets/commitmsg.py
cola/widgets/dag.py
cola/widgets/diff.py
cola/widgets/editremotes.py
cola/widgets/prefs.py
cola/widgets/status.py
cola/widgets/text.py