Disable crash handler if debug mode is not enabled

This commit is contained in:
Arjen Hiemstra 2015-10-05 14:13:49 +02:00
parent a9527920ae
commit 03748ca19a
2 changed files with 14 additions and 5 deletions

View file

@ -125,6 +125,7 @@ class CuraApplication(QtApplication):
def addCommandLineOptions(self, parser):
super().addCommandLineOptions(parser)
parser.add_argument("file", nargs="*", help="Files to load after starting the application.")
parser.add_argument("--debug", dest="debug-mode", action="store_true", default=False, help="Enable detailed crash reports.")
def run(self):
self._i18n_catalog = i18nCatalog("cura");