From d641234a744dd55b87934faab4f6e45cf2d10bd1 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 8 Dec 2016 15:31:51 +0100 Subject: [PATCH] Remove "debug mode" command line parameter We never used it and it doesn't really work anyway. --- cura/CrashHandler.py | 2 -- cura/CuraApplication.py | 1 - 2 files changed, 3 deletions(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index e86e407902..b40a33ae58 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -23,8 +23,6 @@ fatal_exception_types = [ def show(exception_type, value, tb): debug_mode = False - if QCoreApplication.instance(): - debug_mode = QCoreApplication.instance().getCommandLineOption("debug-mode", False) Logger.log("c", "An uncaught exception has occurred!") for line in traceback.format_exception(exception_type, value, tb): diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 4753955337..bd0a86d4af 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -407,7 +407,6 @@ 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.showSplashMessage(self._i18n_catalog.i18nc("@info:progress", "Setting up scene..."))