diff -r 78cb053591c9 -r 44d723e53988 src/eric7/UI/UserInterface.py --- a/src/eric7/UI/UserInterface.py Tue Nov 08 12:19:25 2022 +0100 +++ b/src/eric7/UI/UserInterface.py Tue Nov 08 16:23:26 2022 +0100 @@ -4699,6 +4699,8 @@ @param deleteAttachFile flag indicating to delete the attached file after it has been sent (boolean) """ + from .EmailDialog import EmailDialog + if Preferences.getUser("UseSystemEmailClient"): self.__showSystemEmailClient(mode, attachFile, deleteAttachFile) else: @@ -4718,8 +4720,6 @@ self.showPreferences("emailPage") return - from .EmailDialog import EmailDialog # __IGNORE_WARNING_I101__ - self.dlg = EmailDialog(mode=mode) if attachFile is not None: self.dlg.attachFile(attachFile, deleteAttachFile)