From 83d8c693bc0280019830f84d589872fbc32b866c Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Fri, 8 Dec 2017 15:23:35 +0100 Subject: [PATCH] CuraApplication: Removing superflous check Imagine that there was no "single_instance" in parsed_command_line, then the second half of the if-clause would automatically crash. Also we defined single_instance to be False, whenever not set. Therefore it is always there. Also since no issues ever happened here, let's remove this check. --- cura/CuraApplication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index e02c44d205..45ed6b8260 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -630,7 +630,7 @@ class CuraApplication(QtApplication): CuraApplication.addCommandLineOptions(parser) parsed_command_line = vars(parser.parse_args()) - if "single_instance" in parsed_command_line and parsed_command_line["single_instance"]: + if parsed_command_line["single_instance"]: Logger.log("i", "Checking for the presence of an ready running Cura instance.") single_instance_socket = QLocalSocket() Logger.log("d", "preStartUp(): full server name: " + single_instance_socket.fullServerName())