diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/WebBrowser/SpeedDial/Page.py --- a/src/eric7/WebBrowser/SpeedDial/Page.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/WebBrowser/SpeedDial/Page.py Wed Jul 13 14:55:47 2022 +0200 @@ -12,10 +12,11 @@ """ Class to hold the data for a speed dial page. """ + def __init__(self, url="", title="", broken=False): """ Constructor - + @param url URL of the page (string) @param title title of the page (string) @param broken flag indicating a broken connection (boolean) @@ -23,23 +24,20 @@ self.url = url self.title = title self.broken = broken - + def __eq__(self, other): """ Special method implementing the equality operator. - + @param other reference to the other page object (Page) @return flag indicating equality (boolean) """ - return ( - self.title == other.title and - self.url == other.url - ) - + return self.title == other.title and self.url == other.url + def isValid(self): """ Public method to check the validity. - + @return flag indicating a valid object @rtype bool """