diff -r 82b608e352ec -r 2bbec88047dd eric6/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py --- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py Wed Apr 21 17:56:12 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py Wed Apr 21 19:40:50 2021 +0200 @@ -339,10 +339,7 @@ """ Private slot to set the state of the pronounce buttons. """ - if self.__translationEngine is not None: - hasTTS = self.__translationEngine.hasTTS() - else: - hasTTS = False + hasTTS = self.__translationEngine and self.__translationEngine.hasTTS() self.pronounceOrigButton.setEnabled( hasTTS and bool(self.origEdit.toPlainText())) self.pronounceTransButton.setEnabled(