Skip to content

Commit

Permalink
Merge pull request #1630 from mdboom/reconnect_callbacks
Browse files Browse the repository at this point in the history
A disconnected callback cannot be reconnected
  • Loading branch information
mdboom committed Jan 4, 2013
2 parents 894742b + 9192d57 commit 78fa072
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/matplotlib/cbook.py
Expand Up @@ -323,9 +323,10 @@ def disconnect(self, cid):
except KeyError:
continue
else:
for key, value in self._func_cid_map.items():
if value == cid:
del self._func_cid_map[key]
for category, functions in self._func_cid_map.items():
for function, value in functions.items():
if value == cid:
del functions[function]
return

def process(self, s, *args, **kwargs):
Expand Down

0 comments on commit 78fa072

Please sign in to comment.