mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -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)
|
self.exporter.key, self.exporter.ext)
|
||||||
if not file:
|
if not file:
|
||||||
return
|
return
|
||||||
if checkInvalidFilename(file, dirsep=False):
|
if checkInvalidFilename(os.path.basename(file), dirsep=False):
|
||||||
continue
|
continue
|
||||||
break
|
break
|
||||||
self.hide()
|
self.hide()
|
||||||
|
|
Loading…
Reference in a new issue