task widget does not skip unsetting of asset

This commit is contained in:
iLLiCiTiT 2021-11-17 21:58:47 +01:00
parent 9af516f9b0
commit 96cfc2e4da

View file

@ -226,10 +226,6 @@ class TasksWidget(QtWidgets.QWidget):
self._tasks_model.refresh()
def set_asset_id(self, asset_id):
# Asset deselected
if asset_id is None:
return
# Try and preserve the last selected task and reselect it
# after switching assets. If there's no currently selected
# asset keep whatever the "last selected" was prior to it.