Bug fix: Don't spawn a notification for each new panel (fuck 22 panel update)

This commit is contained in:
Kiooeht 2011-07-04 05:02:36 -07:00
parent fd8c7881f8
commit 18d1536bc9

View file

@ -64,6 +64,9 @@ class MSPAChecker(QtGui.QWidget):
self.status['last_seen'] = {'pubdate':mktime(entries[-1].updated_parsed),'link':entries[-1].link} self.status['last_seen'] = {'pubdate':mktime(entries[-1].updated_parsed),'link':entries[-1].link}
must_save = True must_save = True
if self.status['last_seen']['pubdate'] > self.status['last_visited']['pubdate']: if self.status['last_seen']['pubdate'] > self.status['last_visited']['pubdate']:
if not hasattr(self, "mspa"):
self.mspa = None
if not mspa:
self.mspa = MSPAUpdateWindow(self.parent()) self.mspa = MSPAUpdateWindow(self.parent())
self.connect(self.mspa, QtCore.SIGNAL('accepted()'), self.connect(self.mspa, QtCore.SIGNAL('accepted()'),
self, QtCore.SLOT('visit_site()')) self, QtCore.SLOT('visit_site()'))