Skip to content
Snippets Groups Projects
Commit 4ad7c30f authored by nkour's avatar nkour
Browse files

use present if already open for conversation history window

parent 27723d12
No related branches found
No related tags found
No related merge requests found
......@@ -137,9 +137,11 @@ class Tabbed_chat_window(chat.Chat):
conversation_buffer.delete(start, end)
def on_history_button_clicked(self, widget):
"""When history button is pressed : call history window"""
"""When history button is pressed: call history window"""
jid = self.get_active_jid()
if not self.plugin.windows['logs'].has_key(jid):
if self.plugin.windows['logs'].has_key(jid):
self.plugin.windows['logs'][jid].present()
else:
self.plugin.windows['logs'][jid] = history_window.\
History_window(self.plugin, jid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment