--- a/src/eric7/WebBrowser/WebBrowserWindow.py Fri Oct 25 09:47:48 2024 +0200 +++ b/src/eric7/WebBrowser/WebBrowserWindow.py Fri Oct 25 17:58:59 2024 +0200 @@ -3113,7 +3113,7 @@ if meta["name"] == "description": description = meta["content"] - dlg = AddBookmarkDialog() + dlg = AddBookmarkDialog(parent=self) dlg.setUrl(url) dlg.setTitle(title) dlg.setDescription(description) @@ -3129,7 +3129,7 @@ """ from .Bookmarks.AddBookmarkDialog import AddBookmarkDialog - dlg = AddBookmarkDialog() + dlg = AddBookmarkDialog(parent=self) menu = self.bookmarksManager().menu() idx = self.bookmarksManager().bookmarksModel().nodeIndex(menu) dlg.setCurrentIndex(idx) @@ -3157,7 +3157,7 @@ from .Bookmarks.AddBookmarkDialog import AddBookmarkDialog from .WebBrowserPage import WebBrowserPage - dlg = AddBookmarkDialog() + dlg = AddBookmarkDialog(parent=self) dlg.setFolder(True) dlg.setTitle(self.tr("Saved Tabs")) dlg.exec() @@ -3691,9 +3691,9 @@ ) dlg = ConfigurationDialog( - self, - "Configuration", - True, + parent=self, + name="Configuration", + modal=True, fromEric=False, displayMode=ConfigurationMode.WEBBROWSERMODE, ) @@ -3799,7 +3799,7 @@ """ from .WebBrowserLanguagesDialog import WebBrowserLanguagesDialog - dlg = WebBrowserLanguagesDialog(self) + dlg = WebBrowserLanguagesDialog(parent=self) dlg.exec() self.networkManager().languagesChanged() @@ -3810,7 +3810,7 @@ """ from .CookieJar.CookiesConfigurationDialog import CookiesConfigurationDialog - dlg = CookiesConfigurationDialog(self) + dlg = CookiesConfigurationDialog(parent=self) dlg.exec() @classmethod @@ -4021,7 +4021,7 @@ QtHelpDocumentationConfigurationDialog, ) - dlg = QtHelpDocumentationConfigurationDialog(self.__helpEngine, self) + dlg = QtHelpDocumentationConfigurationDialog(self.__helpEngine, parent=self) dlg.exec() def getSourceFileList(self): @@ -4173,7 +4173,7 @@ """ from .WebBrowserClearPrivateDataDialog import WebBrowserClearPrivateDataDialog - dlg = WebBrowserClearPrivateDataDialog(self) + dlg = WebBrowserClearPrivateDataDialog(parent=self) if dlg.exec() == QDialog.DialogCode.Accepted: # browsing history, search history, favicons, disk cache, cookies, # passwords, web databases, downloads, zoom values, SSL error @@ -4225,7 +4225,7 @@ """ from .OpenSearch.OpenSearchDialog import OpenSearchDialog - dlg = OpenSearchDialog(self) + dlg = OpenSearchDialog(parent=self) dlg.exec() def searchEnginesAction(self): @@ -4245,7 +4245,7 @@ """ from .Passwords.PasswordsDialog import PasswordsDialog - dlg = PasswordsDialog(self) + dlg = PasswordsDialog(parent=self) dlg.exec() @pyqtSlot() @@ -4300,7 +4300,7 @@ """ from .ZoomManager.ZoomValuesDialog import ZoomValuesDialog - dlg = ZoomValuesDialog(self) + dlg = ZoomValuesDialog(parent=self) dlg.exec() @pyqtSlot() @@ -5013,7 +5013,7 @@ """ from .UserAgent.UserAgentsDialog import UserAgentsDialog - dlg = UserAgentsDialog(self) + dlg = UserAgentsDialog(parent=self) dlg.exec() @classmethod