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,12 +64,15 @@ 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']:
self.mspa = MSPAUpdateWindow(self.parent()) if not hasattr(self, "mspa"):
self.connect(self.mspa, QtCore.SIGNAL('accepted()'), self.mspa = None
self, QtCore.SLOT('visit_site()')) if not mspa:
self.connect(self.mspa, QtCore.SIGNAL('rejected()'), self.mspa = MSPAUpdateWindow(self.parent())
self, QtCore.SLOT('nothing()')) self.connect(self.mspa, QtCore.SIGNAL('accepted()'),
self.mspa.show() self, QtCore.SLOT('visit_site()'))
self.connect(self.mspa, QtCore.SIGNAL('rejected()'),
self, QtCore.SLOT('nothing()'))
self.mspa.show()
else: else:
#print "No new updates :(" #print "No new updates :("
pass pass