Don't show MAL privacy notification if no libMal

This commit is contained in:
Etoh 2013-12-01 22:25:44 +00:00
parent ee3ddcbdbb
commit 07a4ba7b80

View File

@ -309,7 +309,7 @@ class SyncplayClient(object):
self.userlist.currentUser.setFile(filename, duration, size)
self.sendFile()
self._malUpdater.fileChangeHook(rawfilename, duration)
if filename <> rawfilename and self.givenmalprivacywarning == False:
if libMal and filename <> rawfilename and self.givenmalprivacywarning == False:
message = getMessage("en", "mal-noprivacy-notification")
self.ui.showErrorMessage(message)
self.givenmalprivacywarning = True