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:
authorAleksei S <a.sasin@ultimaker.com>2018-12-06 14:00:26 +0300
committerAleksei S <a.sasin@ultimaker.com>2018-12-06 14:00:26 +0300
commit84c85439ff4db4db77eecc1657fcd78634eca16e (patch)
tree8bc2d94ab35fa542d58ac7f932ab4b1e5c31f322
parente8a933331c0be8ce2086a26a982ee220282001d7 (diff)
The trigger_early_crash did not trigger early crash for testing purposes
CURA-5939
-rwxr-xr-xcura/CuraApplication.py6
-rwxr-xr-xcura_app.py6
2 files changed, 4 insertions, 8 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py
index 47cc94f972..dfdb50515f 100755
--- a/cura/CuraApplication.py
+++ b/cura/CuraApplication.py
@@ -181,7 +181,6 @@ class CuraApplication(QtApplication):
# Variables set from CLI
self._files_to_open = []
self._use_single_instance = False
- self._trigger_early_crash = False # For debug only
self._single_instance = None
@@ -292,7 +291,10 @@ class CuraApplication(QtApplication):
sys.exit(0)
self._use_single_instance = self._cli_args.single_instance
- self._trigger_early_crash = self._cli_args.trigger_early_crash
+ # FOR TESTING ONLY
+ if self._cli_args.trigger_early_crash:
+ assert not "This crash is triggered by the trigger_early_crash command line argument."
+
for filename in self._cli_args.file:
self._files_to_open.append(os.path.abspath(filename))
diff --git a/cura_app.py b/cura_app.py
index 164e32e738..8df12d771a 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -17,12 +17,6 @@ parser.add_argument("--debug",
default = False,
help = "Turn on the debug mode by setting this option."
)
-parser.add_argument("--trigger-early-crash",
- dest = "trigger_early_crash",
- action = "store_true",
- default = False,
- help = "FOR TESTING ONLY. Trigger an early crash to show the crash dialog."
- )
known_args = vars(parser.parse_known_args()[0])
if not known_args["debug"]: