diff -r 9aea3575bd16 -r 72d9b5ea39b4 src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py --- a/src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py Fri Jan 05 16:04:03 2024 +0100 +++ b/src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py Sat Jan 06 15:21:02 2024 +0100 @@ -319,12 +319,12 @@ @param editor reference to the editor to work on @type Editor """ - from .ImageMarkupDialog import ImageMarkupDialog + from .ImageMarkupDialog import ImageMarkupDialog, ImageMarkupMode if editor is None: return - dlg = ImageMarkupDialog(ImageMarkupDialog.RestMode) + dlg = ImageMarkupDialog(ImageMarkupMode.Rest) if dlg.exec() == QDialog.DialogCode.Accepted: address, altText, title, originalSize, width, height = dlg.getData()