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.
This commit is contained in:
Thomas Karl Pietrowski 2017-12-08 15:23:35 +01:00
parent 00a77da9d4
commit 83d8c693bc

View file

@ -630,7 +630,7 @@ class CuraApplication(QtApplication):
CuraApplication.addCommandLineOptions(parser) CuraApplication.addCommandLineOptions(parser)
parsed_command_line = vars(parser.parse_args()) 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.") Logger.log("i", "Checking for the presence of an ready running Cura instance.")
single_instance_socket = QLocalSocket() single_instance_socket = QLocalSocket()
Logger.log("d", "preStartUp(): full server name: " + single_instance_socket.fullServerName()) Logger.log("d", "preStartUp(): full server name: " + single_instance_socket.fullServerName())