summaryrefslogtreecommitdiff
path: root/src/main/python/utils/fileWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/utils/fileWindow.py')
-rw-r--r--src/main/python/utils/fileWindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index 215ebfe..04ed81a 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -9,7 +9,7 @@ from .graphics import customView
from .canvas import canvas
from .tabs import customTabWidget
from .undo import resizeCommand
-from .app import dumps, loads, JSON_Typer
+from .app import dump, loads, JSON_Typer
class fileWindow(QMdiSubWindow):
@@ -222,7 +222,7 @@ class fileWindow(QMdiSubWindow):
name = QFileDialog.getSaveFileName(self, 'Save File', f'New Diagram', 'Process Flow Diagram (*.pfd)') if not name else name
if name[0]:
with open(name[0],'w') as file:
- dumps(self, file, indent=4, cls=JSON_Typer)
+ dump(self, file, indent=4, cls=JSON_Typer)
return True
else:
return False