projects
/
biacv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added META-INFO to export template
[biacv.git]
/
biacv_mainwindow.py
diff --git
a/biacv_mainwindow.py
b/biacv_mainwindow.py
index
a68652c
..
ec74b82
100644
(file)
--- 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
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 ()
# 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"))
# 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"))
# set the output file
exp.set_output (unicode (outputfile.toUtf8(), "utf-8"))