--- a/src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py Mon Nov 07 17:19:58 2022 +0100 @@ -202,11 +202,11 @@ @param editor reference to the editor to work on @type Editor """ + from .HyperlinkMarkupDialog import HyperlinkMarkupDialog + if editor is None: return - from .HyperlinkMarkupDialog import HyperlinkMarkupDialog - dlg = HyperlinkMarkupDialog(False, True, noTitle=True) if dlg.exec() == QDialog.DialogCode.Accepted: text, target, _ = dlg.getData() @@ -319,11 +319,11 @@ @param editor reference to the editor to work on @type Editor """ + from .ImageMarkupDialog import ImageMarkupDialog + if editor is None: return - from .ImageMarkupDialog import ImageMarkupDialog - dlg = ImageMarkupDialog(ImageMarkupDialog.RestMode) if dlg.exec() == QDialog.DialogCode.Accepted: address, altText, title, originalSize, width, height = dlg.getData()