From 8536e99738959de8652d552accac091b0f175d2f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 6 Aug 2009 19:17:31 +0200 Subject: [PATCH] fix closing of AtomPubsub window. Fixes #5210 --- src/atom_window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/atom_window.py b/src/atom_window.py index ff2adf306..a9ce998b3 100644 --- a/src/atom_window.py +++ b/src/atom_window.py @@ -42,6 +42,10 @@ class AtomWindow: else: cls.window.updateCounter() + @classmethod + def windowClosed(cls): + cls.window = None + def __init__(self): ''' Create new window... only if we have anything to show. ''' assert len(self.__class__.entries)>0 @@ -113,6 +117,7 @@ class AtomWindow: def on_close_button_clicked(self, widget): self.window.destroy() + self.windowClosed() def on_next_button_clicked(self, widget): self.displayNextEntry()