fix closing of AtomPubsub window. Fixes #5210
This commit is contained in:
parent
b9d4611fda
commit
8536e99738
|
@ -42,6 +42,10 @@ class AtomWindow:
|
||||||
else:
|
else:
|
||||||
cls.window.updateCounter()
|
cls.window.updateCounter()
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def windowClosed(cls):
|
||||||
|
cls.window = None
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
''' Create new window... only if we have anything to show. '''
|
''' Create new window... only if we have anything to show. '''
|
||||||
assert len(self.__class__.entries)>0
|
assert len(self.__class__.entries)>0
|
||||||
|
@ -113,6 +117,7 @@ class AtomWindow:
|
||||||
|
|
||||||
def on_close_button_clicked(self, widget):
|
def on_close_button_clicked(self, widget):
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
|
self.windowClosed()
|
||||||
|
|
||||||
def on_next_button_clicked(self, widget):
|
def on_next_button_clicked(self, widget):
|
||||||
self.displayNextEntry()
|
self.displayNextEntry()
|
||||||
|
|
Loading…
Reference in New Issue