From e7d604a06e95e770809beaea473eb68700caa760 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 7 May 2013 14:19:30 +0900 Subject: [PATCH] allow overwriting existing files in export (thanks to Chris Burel) --- aqt/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/utils.py b/aqt/utils.py index bc08638cf..95995e41d 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -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