src/eric7/QScintilla/MarkupProviders/HtmlProvider.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9221
bf71ee032bb4
child 9494
0b38ab887b0d
--- a/src/eric7/QScintilla/MarkupProviders/HtmlProvider.py	Sun Nov 06 11:22:39 2022 +0100
+++ b/src/eric7/QScintilla/MarkupProviders/HtmlProvider.py	Mon Nov 07 17:19:58 2022 +0100
@@ -208,11 +208,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(True, False)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             text, target, title = dlg.getData()
@@ -290,11 +290,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.HtmlMode)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             address, altText, title, originalSize, width, height = dlg.getData()

eric ide

mercurial