mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -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."
|
"Ask the user for a file to save. Use DIR as config variable."
|
||||||
dirkey = dir+"Directory"
|
dirkey = dir+"Directory"
|
||||||
file = unicode(QFileDialog.getSaveFileName(
|
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))
|
options=QFileDialog.DontConfirmOverwrite))
|
||||||
if file:
|
if file:
|
||||||
# add extension
|
# add extension
|
||||||
|
|
Loading…
Reference in a new issue