mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
check if index is valid on selection change
This commit is contained in:
parent
ad2a01c1fd
commit
58430956f6
1 changed files with 2 additions and 0 deletions
|
|
@ -33,5 +33,7 @@ class LogsWindow(QtWidgets.QWidget):
|
|||
|
||||
def on_selection_changed(self):
|
||||
index = self.logs_widget.selected_log()
|
||||
if not index or not index.isValid():
|
||||
return
|
||||
node = index.data(self.logs_widget.model.NodeRole)
|
||||
self.log_detail.set_detail(node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue