X-Git-Url: https://harishankar.org/repos/?p=biacv.git;a=blobdiff_plain;f=biacv_mainwindow.py;fp=biacv_mainwindow.py;h=ec74b822d540923ec1c166ea89652a835cd82cca;hp=a68652ce3ebf00fd2561d583484187cae2329eb4;hb=0182823c70c5e1ddf7b8343903201a85e1885e9e;hpb=71764e7ccb7d8a2085c0d984b37e4895a53407df diff --git a/biacv_mainwindow.py b/biacv_mainwindow.py index a68652c..ec74b82 100644 --- a/biacv_mainwindow.py +++ b/biacv_mainwindow.py @@ -45,13 +45,6 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): if templatedir == "": return - # get the output file path - outputfile = PyQt4.QtGui.QFileDialog.getSaveFileName (self, - lang.EXPORT_TITLE) - - if outputfile == "": - return - # create a new exporter object exp = exporter.BiaCVExporter () @@ -61,6 +54,14 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): # set the template directory exp.set_template_directory (unicode (templatedir.toUtf8(), "utf-8")) + # get the output file path + outputfile = PyQt4.QtGui.QFileDialog.getSaveFileName (self, + exp.exporter_name, filter=exp.export_filter) + + if outputfile == "": + return + + # set the output file exp.set_output (unicode (outputfile.toUtf8(), "utf-8"))