eric6/Preferences/ConfigurationPages/EditorGeneralPage.py

changeset 7759
51aa6c6b66f7
parent 7757
1f9f35f9be6d
child 7923
91e843545d9a
diff -r dd54d33d21d2 -r 51aa6c6b66f7 eric6/Preferences/ConfigurationPages/EditorGeneralPage.py
--- a/eric6/Preferences/ConfigurationPages/EditorGeneralPage.py	Mon Oct 05 19:51:55 2020 +0200
+++ b/eric6/Preferences/ConfigurationPages/EditorGeneralPage.py	Tue Oct 06 17:52:44 2020 +0200
@@ -209,7 +209,7 @@
             tabWidth=self.tabwidthSlider.value(),
             indentWidth=self.indentwidthSlider.value(),
         )
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             language, tabWidth, indentWidth = dlg.getData()
             self.__createOverrideItem(language, tabWidth, indentWidth)
             self.languageOverrideWidget.sortItems(0, Qt.AscendingOrder)
@@ -242,7 +242,7 @@
             tabWidth=int(itm.text(1)),
             indentWidth=int(itm.text(2)),
         )
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             language, tabWidth, indentWidth = dlg.getData()
             itm.setText(1, "{0:2d}".format(tabWidth))
             itm.setText(2, "{0:2d}".format(indentWidth))

eric ide

mercurial