From 6ab0ba073d93b212c8a4deeb4ec7e8b916299218 Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Mon, 2 May 2022 14:30:24 +0200 Subject: [PATCH] [Bugfix] Prevent start page loading to fail if WB doesn't define an icon --- src/Mod/Start/StartPage/StartPage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index df0d4f9fc9..5625bb5557 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -483,7 +483,7 @@ def handle(): img = os.path.join(FreeCAD.getResourceDir(),"Mod",wn,"Resources","icons",wn+"Workbench.svg") if not os.path.exists(img): w = FreeCADGui.listWorkbenches()[wb] - if hasattr(w,"Icon"): + if hasattr(w,"Icon") and w.Icon: xpm = w.Icon if "XPM" in xpm: xpm = xpm.replace("\n ","\n") # some XPMs have some indent that QT doesn't like