aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.py
diff options
context:
space:
mode:
authortassaron2017-06-25 15:31:42 -0400
committertassaron2017-06-25 15:31:42 -0400
commit6a1a5cd6eb931f5f9316f89c680ca318f845a746 (patch)
tree6c316075b3b494e7ae5756896b590f308131f19e /src/mainwindow.py
parent675a06dd4c10babb3ef2553f6c7cdd92b5f5ef0a (diff)
--export commandline option
overrides -i and -o to use saved fields from a project file
Diffstat (limited to 'src/mainwindow.py')
-rw-r--r--src/mainwindow.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainwindow.py b/src/mainwindow.py
index e4e4f38..203992b 100644
--- a/src/mainwindow.py
+++ b/src/mainwindow.py
@@ -229,7 +229,9 @@ class MainWindow(QtWidgets.QMainWindow):
project += '.avp'
# open a project from the commandline
if not os.path.dirname(project):
- project = os.path.join(os.path.expanduser('~'), project)
+ project = os.path.join(
+ self.settings.value("projectDir"), project
+ )
self.currentProject = project
self.settings.setValue("currentProject", project)
if os.path.exists(self.autosavePath):
@@ -433,7 +435,8 @@ class MainWindow(QtWidgets.QMainWindow):
self.showMessage(
msg='Chosen filename matches a directory, which '
'cannot be overwritten. Please choose a different '
- 'filename or move the directory.'
+ 'filename or move the directory.',
+ icon='Warning',
)
return
else: