diff -r c4b5f3393d63 -r c1af2e327675 eric6/Preferences/SubstyleDefinitionDialog.py --- a/eric6/Preferences/SubstyleDefinitionDialog.py Tue Sep 24 18:45:33 2019 +0200 +++ b/eric6/Preferences/SubstyleDefinitionDialog.py Tue Sep 24 18:46:24 2019 +0200 @@ -99,8 +99,10 @@ """ Private slot to set the dialog contents to default values. """ - filled = bool(self.descriptionEdit.text().strip()) or \ + filled = ( + bool(self.descriptionEdit.text().strip()) or bool(self.wordsEdit.toPlainText().strip()) + ) if filled: ok = E5MessageBox.yesNo( self,