--- a/src/eric7/WebBrowser/Tools/WebIconProvider.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/WebBrowser/Tools/WebIconProvider.py Mon Nov 07 17:19:58 2022 +0100 @@ -109,7 +109,9 @@ if not self.__loaded: return - from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow + from eric7.WebBrowser.WebBrowserWindow import ( # __IGNORE_WARNING_I101__ + WebBrowserWindow, + ) if not WebBrowserWindow.isPrivate() and bool(self.__iconDatabasePath): db = {} @@ -219,15 +221,18 @@ self.changed.emit() self.__saveTimer.saveIfNeccessary() - def showWebIconDialog(self): + def showWebIconDialog(self, parent=None): """ Public method to show a dialog to manage the Favicons. + + @param parent reference to the parent widget + @type QWidget """ + from .WebIconDialog import WebIconDialog + self.load() - from .WebIconDialog import WebIconDialog - - dlg = WebIconDialog(self.__iconsDB) + dlg = WebIconDialog(self.__iconsDB, parent=parent) if dlg.exec() == QDialog.DialogCode.Accepted: changed = False urls = dlg.getUrls()