diff --git a/aqt/exporting.py b/aqt/exporting.py index ab25a0221..0eae65964 100644 --- a/aqt/exporting.py +++ b/aqt/exporting.py @@ -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()