mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
check if there is current item
This commit is contained in:
parent
d8b1820d64
commit
1d8618e3b4
1 changed files with 4 additions and 1 deletions
|
|
@ -285,7 +285,10 @@ class FamilyWidget(QtWidgets.QWidget):
|
|||
self.schedule(self._on_data_changed, 500, channel="gui")
|
||||
|
||||
def on_selection_changed(self, *args):
|
||||
plugin = self.list_families.currentItem().data(PluginRole)
|
||||
item = self.list_families.currentItem()
|
||||
if not item:
|
||||
return
|
||||
plugin = item.data(PluginRole)
|
||||
if plugin is None:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue