aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.py')
-rw-r--r--src/mainwindow.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow.py b/src/mainwindow.py
index 203992b..a39f344 100644
--- a/src/mainwindow.py
+++ b/src/mainwindow.py
@@ -644,8 +644,9 @@ class MainWindow(QtWidgets.QMainWindow):
field.blockSignals(False)
@disableWhenEncoding
- def createNewProject(self):
- self.openSaveChangesDialog('starting a new project')
+ def createNewProject(self, prompt=True):
+ if prompt:
+ self.openSaveChangesDialog('starting a new project')
self.clear()
self.currentProject = None