mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
export filename check should be on basename
This commit is contained in:
parent
f7c5003c1c
commit
3e08f09b07
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class ExportDialog(QDialog):
|
|||
self.exporter.key, self.exporter.ext)
|
||||
if not file:
|
||||
return
|
||||
if checkInvalidFilename(file, dirsep=False):
|
||||
if checkInvalidFilename(os.path.basename(file), dirsep=False):
|
||||
continue
|
||||
break
|
||||
self.hide()
|
||||
|
|
Loading…
Reference in a new issue