diff -r b918c6c2736b -r a671918232f3 src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py --- a/src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Fri Oct 25 09:47:48 2024 +0200 +++ b/src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Fri Oct 25 17:58:59 2024 +0200 @@ -595,7 +595,7 @@ else: preselect = [] dlg = EditorHighlightingStylesSelectionDialog( - lexerNames, forImport=False, preselect=preselect + lexerNames, forImport=False, preselect=preselect, parent=self ) if dlg.exec() == QDialog.DialogCode.Accepted: lexerNames = dlg.getLexerNames() @@ -689,7 +689,9 @@ lexerNames = [d["name"] for d in stylesList if d["name"] in self.lexers] if not importAll: - dlg = EditorHighlightingStylesSelectionDialog(lexerNames, forImport=True) + dlg = EditorHighlightingStylesSelectionDialog( + lexerNames, forImport=True, parent=self + ) if dlg.exec() == QDialog.DialogCode.Accepted: lexerNames = dlg.getLexerNames() else: