fix ext reference

This commit is contained in:
Damien Elmes 2013-02-27 14:06:10 +09:00
parent c8d3d5a337
commit 8f8e3c3587

View File

@ -281,7 +281,7 @@ def importFile(mw, file):
except Exception, e:
msg = unicode(e)
if msg == "unknownFormat":
if ext == ".anki2":
if file.endswith(".anki2"):
showWarning(_("""\
.anki2 files are not designed for importing. If you're trying to restore from a \
backup, please see the 'Backups' section of the user manual."""))