mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix check for user exporting into data folder on Windows
https://forums.ankiweb.net/t/unable-to-export-colpkg-file/10527
This commit is contained in:
parent
ebad6ad379
commit
88392634a8
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ class ExportDialog(QDialog):
|
|||
return
|
||||
if checkInvalidFilename(os.path.basename(file), dirsep=False):
|
||||
continue
|
||||
file = os.path.normpath(file)
|
||||
if os.path.commonprefix([self.mw.pm.base, file]) == self.mw.pm.base:
|
||||
showWarning("Please choose a different export location.")
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue