src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py

branch
eric7
changeset 11006
a671918232f3
parent 10692
9becf9ca115c
child 11090
f5f5f5803935
--- 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:

eric ide

mercurial