allow overwriting existing files in export (thanks to Chris Burel)
This commit is contained in:
parent
2c1194658e
commit
e7d604a06e
@ -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 New Issue
Block a user