fix emoticon toggle

This commit is contained in:
chrys 2016-10-18 20:54:41 +02:00
parent 096b477d16
commit 92677eaef4

View File

@ -54,7 +54,7 @@ class punctuationManager():
def proceedPunctuation(self, text, ignorePunctuation=False): def proceedPunctuation(self, text, ignorePunctuation=False):
resultText = text resultText = text
resultText = self.useCustomDict(resultText, self.env['punctuation']['CUSTOMDICT']) resultText = self.useCustomDict(resultText, self.env['punctuation']['CUSTOMDICT'])
if self.env['runtime']['settingsManager'].getSetting('general', 'emoticons'): if self.env['runtime']['settingsManager'].getSettingAsBool('general', 'emoticons'):
resultText = self.useCustomDict(resultText, self.env['punctuation']['EMOTICONDICT']) resultText = self.useCustomDict(resultText, self.env['punctuation']['EMOTICONDICT'])
currPunctLevel = '' currPunctLevel = ''
if not ignorePunctuation and self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower() in self.env['punctuation']['LEVELDICT']: if not ignorePunctuation and self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower() in self.env['punctuation']['LEVELDICT']: