Skip to content

Commit

Permalink
Verify selection when refreshing current selection
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Jan 30, 2025
1 parent 5dfbbd8 commit 050077c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ert/gui/simulation/view/realization.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def clearSelection(self) -> None:

def refresh_current_selection(self) -> None:
selected_reals = self._real_view.selectedIndexes()
self._item_clicked(selected_reals[0])
if selected_reals:
self._item_clicked(selected_reals[0])


class RealizationDelegate(QStyledItemDelegate):
Expand Down

0 comments on commit 050077c

Please sign in to comment.