mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
allow overwriting existing files in export (thanks to Chris Burel)
This commit is contained in:
parent
2c1194658e
commit
e7d604a06e
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ def getSaveFile(parent, title, dir, key, ext):
|
|||
"Ask the user for a file to save. Use DIR as config variable."
|
||||
dirkey = dir+"Directory"
|
||||
file = unicode(QFileDialog.getSaveFileName(
|
||||
parent, title, aqt.mw.pm.base, key,
|
||||
parent, title, aqt.mw.pm.base, "{0} (*{1})".format(key, ext),
|
||||
options=QFileDialog.DontConfirmOverwrite))
|
||||
if file:
|
||||
# add extension
|
||||
|
|
Loading…
Reference in a new issue