Added META-INFO to export template
[biacv.git] / biacv_mainwindow.py
index a68652c..ec74b82 100644 (file)
@@ -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"))