From ca1f799a7d4cff50446359bec3b0769ed36271ca Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 29 Dec 2020 21:06:01 +0800 Subject: [PATCH] Path: fix crash on edit Many Path object forward its editing operation to the job object. It is possible that some editing option change may lead to removing of the editing object (e.g. changing stock type) causing crash. It is possible to just open the task panel without setting any editing object by returning False in ViewProvider.setEdit() --- src/Mod/Path/PathScripts/PathIconViewProvider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathIconViewProvider.py b/src/Mod/Path/PathScripts/PathIconViewProvider.py index 8a61b6a407..ff06129c71 100644 --- a/src/Mod/Path/PathScripts/PathIconViewProvider.py +++ b/src/Mod/Path/PathScripts/PathIconViewProvider.py @@ -78,7 +78,7 @@ class ViewProvider(object): # pylint: disable=unused-argument if 0 == mode: self._onEditCallback(True) - return True + return False def unsetEdit(self, arg1, arg2): # pylint: disable=unused-argument