qobserver: fix a bug where we would respond to redundant notificationsv1.3.3
commitc8c4838f488be76751457275ae32eac2fe603d8f
authorDavid Aguilar <davvid@gmail.com>
Fri, 5 Dec 2008 07:13:36 +0000 (4 23:13 -0800)
committerDavid Aguilar <davvid@gmail.com>
Fri, 5 Dec 2008 07:13:36 +0000 (4 23:13 -0800)
tree51098c6896279a44ac2cf7c5cbc96d79b3f6d4d8
parent1e352393667c73766b2e1178d03095c0439e26d5
qobserver: fix a bug where we would respond to redundant notifications

When setting a text field Qt triggers a callback.  We catch this callback
and update our model accordingly.  When the model updates, it triggers
another callback which causes a feedback loop that eventually resolves
with the text field getting set twice.  This is problematic since
it makes entering text problematic.

We now detect this situation and stop the notification loop accordingly.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/controllers/createbranch.py
cola/qobserver.py