From 708835a4859a0c5d81a34b26442962e727a0035b Mon Sep 17 00:00:00 2001 From: Blaine Date: Tue, 5 May 2020 14:26:43 +0530 Subject: return values fixed, and edge case sorted --- src/main/python/utils/fileWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/python/utils/fileWindow.py') 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 -- cgit