Skip to content

Commit

Permalink
Update activity tab name based on indexOf (#1413)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvisscher authored Nov 26, 2024
1 parent 9ace464 commit f2a6fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activity_browser/layouts/tabs/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def open_activity_tab(self, key: tuple, read_only: bool = True) -> None:
)
new_tab.destroyed.connect(signals.hide_when_empty.emit)
new_tab.objectNameChanged.connect(
lambda name: self.setTabText(tab_index, name)
lambda name: self.setTabText(self.indexOf(new_tab), name)
)

self.select_tab(self.tabs[key])
Expand Down

0 comments on commit f2a6fdb

Please sign in to comment.