eric6/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py

changeset 7759
51aa6c6b66f7
parent 7743
817a81a2e6aa
child 7780
41420f82c0ac
--- a/eric6/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py	Mon Oct 05 19:51:55 2020 +0200
+++ b/eric6/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py	Tue Oct 06 17:52:44 2020 +0200
@@ -662,7 +662,7 @@
         style, substyle = self.__currentStyles()
         dlg = SubstyleDefinitionDialog(
             self.lexer, style, substyle, parent=self)
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             description, words = dlg.getData()
             substyle = self.lexer.addSubstyle(style)
             self.lexer.setDescription(description, style, substyle)
@@ -706,7 +706,7 @@
         style, substyle = self.__currentStyles()
         dlg = SubstyleDefinitionDialog(
             self.lexer, style, substyle, parent=self)
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             description, words = dlg.getData()
             self.lexer.setDescription(description, style, substyle)
             self.lexer.setWords(words, style, substyle)

eric ide

mercurial