src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9221
bf71ee032bb4
child 9494
0b38ab887b0d
--- 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()

eric ide

mercurial