diff -r b918c6c2736b -r a671918232f3 src/eric7/UI/UserInterface.py --- a/src/eric7/UI/UserInterface.py Fri Oct 25 09:47:48 2024 +0200 +++ b/src/eric7/UI/UserInterface.py Fri Oct 25 17:58:59 2024 +0200 @@ -4687,7 +4687,7 @@ versionInfo.append("</table>") - VersionsDialog(self, Program, "".join(versionInfo)) + VersionsDialog(parent=self, title=Program, text="".join(versionInfo)) def __copyVersions(self): """ @@ -4795,7 +4795,7 @@ if Preferences.getUI("CheckErrorLog"): logFile = os.path.join(EricUtilities.getConfigDir(), self.ErrorLogFileName) if os.path.exists(logFile): - dlg = ErrorLogDialog(logFile, False, self) + dlg = ErrorLogDialog(logFile, False, parent=self) dlg.exec() def __hasErrorLog(self): @@ -4826,7 +4826,7 @@ """ from .InstallInfoDialog import InstallInfoDialog - dlg = InstallInfoDialog(self) + dlg = InstallInfoDialog(parent=self) if dlg.wasLoaded(): dlg.exec() @@ -6048,7 +6048,9 @@ """ from eric7.Preferences.ToolConfigurationDialog import ToolConfigurationDialog - dlg = ToolConfigurationDialog(self.toolGroups[self.currentToolGroup][1], self) + dlg = ToolConfigurationDialog( + self.toolGroups[self.currentToolGroup][1], parent=self + ) if dlg.exec() == QDialog.DialogCode.Accepted: self.toolGroups[self.currentToolGroup][1] = dlg.getToollist() self.__updateExternalToolsActions() @@ -6061,7 +6063,9 @@ ToolGroupConfigurationDialog, ) - dlg = ToolGroupConfigurationDialog(self.toolGroups, self.currentToolGroup, self) + dlg = ToolGroupConfigurationDialog( + self.toolGroups, self.currentToolGroup, parent=self + ) if dlg.exec() == QDialog.DialogCode.Accepted: self.toolGroups, self.currentToolGroup = dlg.getToolGroups() @@ -7325,8 +7329,8 @@ if self.__configurationDialog is None: # only one invocation at a time is allowed self.__configurationDialog = ConfigurationDialog( - self, - "Configuration", + parent=self, + name="Configuration", expandedEntries=self.__expandedConfigurationEntries, ) self.__configurationDialog.preferencesChanged.connect( @@ -7530,7 +7534,10 @@ from eric7.Preferences.ViewProfileDialog import ViewProfileDialog dlg = ViewProfileDialog( - self.__layoutType, self.profiles["edit"][1], self.profiles["debug"][1] + self.__layoutType, + self.profiles["edit"][1], + self.profiles["debug"][1], + parent=self, ) if dlg.exec() == QDialog.DialogCode.Accepted: edit, debug = dlg.getVisibilities() @@ -7548,7 +7555,7 @@ """ from eric7.EricWidgets.EricToolBarDialog import EricToolBarDialog - dlg = EricToolBarDialog(self.toolbarManager) + dlg = EricToolBarDialog(self.toolbarManager, parent=self) if dlg.exec() == QDialog.DialogCode.Accepted: Preferences.setUI("ToolbarManagerState", self.toolbarManager.saveState()) @@ -7632,7 +7639,7 @@ """ from .ClearPrivateDataDialog import ClearPrivateDataDialog - dlg = ClearPrivateDataDialog(self) + dlg = ClearPrivateDataDialog(parent=self) if dlg.exec() == QDialog.DialogCode.Accepted: # recent files, recent projects, recent multi projects, # debug histories, shell histories @@ -8295,7 +8302,7 @@ """ from eric7.PluginManager.PluginUninstallDialog import PluginUninstallDialog - dlg = PluginUninstallDialog(self.pluginManager, self) + dlg = PluginUninstallDialog(self.pluginManager, parent=self) dlg.exec() if self.__findFileWidget: @@ -8310,7 +8317,7 @@ """ from eric7.PluginManager.PluginRepositoryDialog import PluginRepositoryDialog - dlg = PluginRepositoryDialog(self.pluginManager, self) + dlg = PluginRepositoryDialog(self.pluginManager, parent=self) res = dlg.exec() if res == (QDialog.DialogCode.Accepted + 1): self.__installPlugins(dlg.getDownloadedPlugins())