Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2021-01-23 14:02:57 +0300
committerRemco Burema <r.burema@ultimaker.com>2021-01-23 14:02:57 +0300
commit9197a1ca51d56312aa027dcfa80375022486ed15 (patch)
treea4d92472beddf690408337773015dd5dd32c04c5
parente681a6d32d5be1e9d23cdf8962306c885f9c03b8 (diff)
Fix crash on open project from term or by file.
Opening a .3mf file or other project would cause a crash if the preference for always opening as a project (as opposed to importing models or 'always ask') was set. Traced back to a typo. CURA-7987
-rwxr-xr-xcura/CuraApplication.py4
-rw-r--r--cura/Snapshot.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py
index 7302066550..e2e82eb65a 100755
--- a/cura/CuraApplication.py
+++ b/cura/CuraApplication.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2020 Ultimaker B.V.
+# Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import os
@@ -1762,7 +1762,7 @@ class CuraApplication(QtApplication):
if is_project_file and project_mode == "open_as_project":
# open as project immediately without presenting a dialog
workspace_handler = self.getWorkspaceFileHandler()
- workspace_handler.readLocalFile(file, add_to_recent_files = add_to_recent_files)
+ workspace_handler.readLocalFile(file, add_to_recent_files_hint = add_to_recent_files)
return
if is_project_file and project_mode == "always_ask":
diff --git a/cura/Snapshot.py b/cura/Snapshot.py
index c4c1ce000e..bc7da4080a 100644
--- a/cura/Snapshot.py
+++ b/cura/Snapshot.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2018 Ultimaker B.V.
+# Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import numpy