Fixed: Revert bug introduced in playSound

This commit is contained in:
coffeedogs 2018-06-19 13:18:21 +01:00
parent 86a7311a78
commit 953695f2f1
No known key found for this signature in database
GPG Key ID: 9D818C503D0B7E70

View File

@ -1385,7 +1385,8 @@ class MyForm(settingsmixin.SMainWindow): # pylint: disable=too-many-public-meth
# elapsed time since the last sound was played
dt = datetime.now() - self.lastSoundTime
# suppress sounds which are more frequent than the threshold
if not dt.total_seconds() < self.maxSoundFrequencySec:
if dt.total_seconds() < self.maxSoundFrequencySec:
return
# the sound is for an address which exists in the address book
if category is sound.SOUND_KNOWN: