From c44e182a00f8aa79c66d6bc9472ed00b33a0dc16 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 29 May 2011 16:29:38 +0200 Subject: [PATCH] Remove InfoTab references --- src/core.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core.py b/src/core.py index 4430d280..e096b65c 100644 --- a/src/core.py +++ b/src/core.py @@ -583,8 +583,7 @@ class Core(object): resource.set_presence(status) resource.set_priority(priority) resource.set_status(status_message) - if isinstance(self.current_tab(), tabs.InfoTab) or\ - isinstance(self.current_tab(), tabs.RosterInfoTab): + if isinstance(self.current_tab(), tabs.RosterInfoTab): self.refresh_window() def on_roster_update(self, iq): @@ -1322,8 +1321,7 @@ class Core(object): Close the given tab. If None, close the current one """ tab = tab or self.current_tab() - if isinstance(tab, tabs.RosterInfoTab) or\ - isinstance(tab, tabs.InfoTab): + if isinstance(tab, tabs.RosterInfoTab): return # The tab 0 should NEVER be closed del tab.key_func # Remove self references del tab.commands # and make the object collectable