summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-04-17 15:49:38 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-04-17 15:49:38 +0200
commitda76355af0759a9265bec470a72af129d797fa04 (patch)
treefa652eed31bacd7f9f4ef669bdd1875595f1541f /src/core.py
parentd1a797205af8e3a016b3301592d27b17d79bdd48 (diff)
downloadpoezio-da76355af0759a9265bec470a72af129d797fa04.tar.gz
poezio-da76355af0759a9265bec470a72af129d797fa04.tar.bz2
poezio-da76355af0759a9265bec470a72af129d797fa04.tar.xz
poezio-da76355af0759a9265bec470a72af129d797fa04.zip
Remove the paused timed event when we send the message
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 2bce73db..7b3bcb62 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1398,6 +1398,11 @@ class Core(object):
self.focus_tab_named(roster_row.get_jid().full)
self.refresh_window()
+ def remove_timed_event(self, event):
+ if event and event in self.timed_events:
+ log.debug('removing event')
+ self.timed_events.remove(event)
+
def add_timed_event(self, event):
self.timed_events.add(event)