Skip to content

Commit

Permalink
Fix enabling Find next occurrence -action
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Koski committed Feb 5, 2024
1 parent 1173ca5 commit a4cd093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinetoolbox/spine_db_editor/widgets/custom_qtreeview.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def update_actions_availability(self):
self._edit_action.setEnabled(not read_only)
self._remove_action.setEnabled(not read_only)
self._find_next_action.setEnabled(
item.item_type == "entity" and item.parent_item.parent_item.item_type == "entity"
item.item_type == "entity" and item.parent_item.parent_item.item_type == "entity_class"
)

def edit_selected(self):
Expand Down

0 comments on commit a4cd093

Please sign in to comment.