From 5f0ef85044adde4665ee9187a8d8b5e0106facb4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 30 Oct 2013 21:10:25 +0900 Subject: [PATCH] fix reversed check in media --- anki/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/media.py b/anki/media.py index 3560278a2..d44065117 100644 --- a/anki/media.py +++ b/anki/media.py @@ -228,7 +228,7 @@ class MediaManager(object): nfcFile = unicodedata.normalize("NFC", file) # we enforce NFC fs encoding on non-macs; on macs we'll have gotten # NFD so we use the above variable for comparing references - if not isMac and local: + if not isMac and not local: if file != nfcFile: # delete if we already have the NFC form, otherwise rename if os.path.exists(nfcFile):