diff -r 02cf3bac079b -r a68d78702c98 Helpviewer/AdBlock/AdBlockSubscription.py --- a/Helpviewer/AdBlock/AdBlockSubscription.py Sat Aug 04 13:30:04 2012 +0200 +++ b/Helpviewer/AdBlock/AdBlockSubscription.py Sat Aug 04 13:46:18 2012 +0200 @@ -30,9 +30,11 @@ @signal changed() emitted after the subscription has changed @signal rulesChanged() emitted after the subscription's rules have changed + @signal enabledChanged(bool) emitted after the enabled state was changed """ changed = pyqtSignal() rulesChanged = pyqtSignal() + enabledChanged = pyqtSignal(bool) def __init__(self, url, custom, parent=None, default=False): """ @@ -99,10 +101,6 @@ lastUpdateByteArray = url.encodedQueryItemValue("lastUpdate") lastUpdateString = QUrl.fromPercentEncoding(lastUpdateByteArray) self.__lastUpdate = QDateTime.fromString(lastUpdateString, Qt.ISODate) -## if lastUpdateString: -## self.__lastUpdate = QDateTime.fromString(lastUpdateString, Qt.ISODate) -## else: -## self.__lastUpdate = QDateTime.currentDateTime() self.__loadRules() @@ -148,6 +146,7 @@ return self.__enabled = enabled + self.enabledChanged.emit(enabled) def title(self): """