summaryrefslogtreecommitdiff
path: root/src/main/python/utils/fileWindow.py
diff options
context:
space:
mode:
authorBlaine2020-05-05 14:26:43 +0530
committerBlaine2020-05-05 14:26:43 +0530
commit708835a4859a0c5d81a34b26442962e727a0035b (patch)
tree615f6eaa149ed6e36b282a1c45eea32adee0a90c /src/main/python/utils/fileWindow.py
parent7fa23828f14322e7c34fc32b7e9c6ac5d688200e (diff)
downloadChemical-PFD-708835a4859a0c5d81a34b26442962e727a0035b.tar.gz
Chemical-PFD-708835a4859a0c5d81a34b26442962e727a0035b.tar.bz2
Chemical-PFD-708835a4859a0c5d81a34b26442962e727a0035b.zip
return values fixed, and edge case sorted
Diffstat (limited to 'src/main/python/utils/fileWindow.py')
-rw-r--r--src/main/python/utils/fileWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index 26daf46..95488b0 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -178,7 +178,7 @@ class fileWindow(QMdiSubWindow):
def saveProject(self, name = None):
# called by dialog.saveEvent, saves the current file
name = QFileDialog.getSaveFileName(self, 'Save File', f'New Diagram', 'Process Flow Diagram (*.pfd)') if not name else name
- if name:
+ if name[0]:
with open(name[0],'wb') as file:
pickle.dump(self, file)
return True