From 19c9d167055e1e32d5835d66cda826650cdc47b1 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 1 Aug 2018 19:39:48 +0200 Subject: Fix some leftover issues with tab handling --- poezio/core/handlers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'poezio/core/handlers.py') diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index fcc0a07e..36bc6821 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -950,7 +950,7 @@ class HandlerCore: '%s wants to subscribe to your presence, use ' '/accept or /deny in the roster ' 'tab to accept or reject the query.' % jid, 'Roster') - self.core.get_tab_by_number(0).state = 'highlight' + self.core.tabs.first().state = 'highlight' roster.modified() if isinstance(self.core.tabs.current_tab, tabs.RosterInfoTab): self.core.refresh_window() @@ -979,7 +979,7 @@ class HandlerCore: roster.modified() self.core.information( '%s does not want to receive your status anymore.' % jid, 'Roster') - self.core.get_tab_by_number(0).state = 'highlight' + self.core.tabs.first().state = 'highlight' if isinstance(self.core.tabs.current_tab, tabs.RosterInfoTab): self.core.refresh_window() @@ -998,7 +998,7 @@ class HandlerCore: self.core.information( '%s does not want you to receive his/her/its status anymore.' % jid, 'Roster') - self.core.get_tab_by_number(0).state = 'highlight' + self.core.tabs.first().state = 'highlight' if isinstance(self.core.tabs.current_tab, tabs.RosterInfoTab): self.core.refresh_window() -- cgit v1.2.3