diff options
author | mathieui <mathieui@mathieui.net> | 2011-05-29 16:29:38 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-05-29 16:29:38 +0200 |
commit | c44e182a00f8aa79c66d6bc9472ed00b33a0dc16 (patch) | |
tree | 104ea84855bf61807e88f75a5543e69b0c82ec69 /src | |
parent | f6d38cbd10257ec4194c8189e6065821b9c4724d (diff) | |
download | poezio-c44e182a00f8aa79c66d6bc9472ed00b33a0dc16.tar.gz poezio-c44e182a00f8aa79c66d6bc9472ed00b33a0dc16.tar.bz2 poezio-c44e182a00f8aa79c66d6bc9472ed00b33a0dc16.tar.xz poezio-c44e182a00f8aa79c66d6bc9472ed00b33a0dc16.zip |
Remove InfoTab references
Diffstat (limited to 'src')
-rw-r--r-- | src/core.py | 6 |
1 files 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 |