Fixes #2349
This commit is contained in:
parent
a6187895c7
commit
4cf1acd9e4
2 changed files with 7 additions and 3 deletions
|
@ -2066,6 +2066,10 @@ class Core(object):
|
||||||
del tab.commands # and make the object collectable
|
del tab.commands # and make the object collectable
|
||||||
tab.on_close()
|
tab.on_close()
|
||||||
self.tabs.remove(tab)
|
self.tabs.remove(tab)
|
||||||
|
if tab.get_name() in logger.fds:
|
||||||
|
logger.fds[tab.get_name()].close()
|
||||||
|
log.debug("Log file for %s closed.", tab.get_name())
|
||||||
|
del logger.fds[tab.get_name()]
|
||||||
self.tabs[0].on_gain_focus()
|
self.tabs[0].on_gain_focus()
|
||||||
self.refresh_window()
|
self.refresh_window()
|
||||||
import gc
|
import gc
|
||||||
|
|
|
@ -2216,7 +2216,7 @@ class ConversationTab(ChatTab):
|
||||||
def __init__(self, jid):
|
def __init__(self, jid):
|
||||||
ChatTab.__init__(self)
|
ChatTab.__init__(self)
|
||||||
self.state = 'normal'
|
self.state = 'normal'
|
||||||
self._name = jid # a conversation tab is linked to one specific full jid OR bare jid
|
self.name = jid # a conversation tab is linked to one specific full jid OR bare jid
|
||||||
self.text_win = windows.TextWin()
|
self.text_win = windows.TextWin()
|
||||||
self._text_buffer.add_window(self.text_win)
|
self._text_buffer.add_window(self.text_win)
|
||||||
self.upper_bar = windows.ConversationStatusMessageWin()
|
self.upper_bar = windows.ConversationStatusMessageWin()
|
||||||
|
@ -2326,7 +2326,7 @@ class ConversationTab(ChatTab):
|
||||||
self.core.information(version, 'Info')
|
self.core.information(version, 'Info')
|
||||||
if arg:
|
if arg:
|
||||||
return self.core.command_version(arg)
|
return self.core.command_version(arg)
|
||||||
jid = self._name
|
jid = self.name
|
||||||
self.core.xmpp.plugin['xep_0092'].get_version(jid, callback=callback)
|
self.core.xmpp.plugin['xep_0092'].get_version(jid, callback=callback)
|
||||||
|
|
||||||
def resize(self):
|
def resize(self):
|
||||||
|
@ -2355,7 +2355,7 @@ class ConversationTab(ChatTab):
|
||||||
self.input.refresh()
|
self.input.refresh()
|
||||||
|
|
||||||
def get_name(self):
|
def get_name(self):
|
||||||
return self._name
|
return self.name
|
||||||
|
|
||||||
def on_input(self, key, raw):
|
def on_input(self, key, raw):
|
||||||
if not raw and key in self.key_func:
|
if not raw and key in self.key_func:
|
||||||
|
|
Loading…
Reference in a new issue