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()
This commit is contained in:
Zheng, Lei
2020-12-29 21:06:01 +08:00
parent e54f4fc086
commit ca1f799a7d

View File

@@ -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