--- a/src/eric7/WebBrowser/SpeedDial/SpeedDial.py Thu Jan 05 11:24:18 2023 +0100 +++ b/src/eric7/WebBrowser/SpeedDial/SpeedDial.py Fri Jan 06 14:45:32 2023 +0100 @@ -316,21 +316,27 @@ self.pagesChanged.emit() @pyqtSlot(str, bool) - def loadThumbnail(self, url, loadTitle): + def loadThumbnail(self, urlStr, loadTitle): """ Public slot to load a thumbnail of the given URL. - @param url URL of the thumbnail (string) + @param urlStr URL of the thumbnail + @type str @param loadTitle flag indicating to get the title for the thumbnail - from the site (boolean) + from the site + @type bool """ from .PageThumbnailer import PageThumbnailer - if not url: + if not urlStr: + return + + url = QUrl.fromEncoded(urlStr.encode("utf-8")) + if not url.host(): return thumbnailer = PageThumbnailer(self) - thumbnailer.setUrl(QUrl.fromEncoded(url.encode("utf-8"))) + thumbnailer.setUrl(url) thumbnailer.setLoadTitle(loadTitle) thumbnailer.thumbnailCreated.connect( lambda imag: self.__thumbnailCreated(imag, thumbnailer)