eric6/QScintilla/MarkupProviders/RestructuredTextProvider.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7781
607a6098cb44
diff -r dd54d33d21d2 -r 51aa6c6b66f7 eric6/QScintilla/MarkupProviders/RestructuredTextProvider.py
--- a/eric6/QScintilla/MarkupProviders/RestructuredTextProvider.py	Mon Oct 05 19:51:55 2020 +0200
+++ b/eric6/QScintilla/MarkupProviders/RestructuredTextProvider.py	Tue Oct 06 17:52:44 2020 +0200
@@ -207,7 +207,7 @@
         
         from .HyperlinkMarkupDialog import HyperlinkMarkupDialog
         dlg = HyperlinkMarkupDialog(False, True, noTitle=True)
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             text, target, _ = dlg.getData()
             
             link1 = "`{0}`_".format(text)
@@ -323,7 +323,7 @@
         
         from .ImageMarkupDialog import ImageMarkupDialog
         dlg = ImageMarkupDialog(ImageMarkupDialog.RestMode)
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             address, altText, title, originalSize, width, height = (
                 dlg.getData()
             )

eric ide

mercurial