From 580bd13a76afec3155e86f0a4d8537595dcf1a30 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 13 May 2020 11:16:26 +0200 Subject: [PATCH] Prevent crash if icon was not found Fixes CURA-A2 --- cura/CuraApplication.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 46ca3c6211..6dcd866c68 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -454,7 +454,10 @@ class CuraApplication(QtApplication): super().startSplashWindowPhase() if not self.getIsHeadLess(): - self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png"))) + try: + self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png"))) + except FileNotFoundError: + Logger.log("w", "Unable to find the window icon.") self.setRequiredPlugins([ # Misc.: