mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Use the right name to remove original file when adding.
(This is in (half-)dead code, but anyway.)
This commit is contained in:
parent
7ab8419594
commit
1ecb0c4ecd
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ please click the help button."""), help="cloze")
|
|||
if canDelete and self.mw.pm.profile['deleteMedia']:
|
||||
if os.path.abspath(name) != os.path.abspath(path):
|
||||
try:
|
||||
os.unlink(old)
|
||||
os.unlink(path)
|
||||
except:
|
||||
pass
|
||||
# return a local html link
|
||||
|
|
Loading…
Reference in a new issue