summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-05 22:12:03 +0100
committermathieui <mathieui@mathieui.net>2011-11-05 22:12:03 +0100
commit25fb35d7e149c9d2a1ac44c9270b11780a5bfcda (patch)
tree5aaf111f421b9aff8eb4fa922bbacdd7312630ad /src/core.py
parenta49af71f7c18eb7373423ab45cb543f2141d049b (diff)
downloadpoezio-25fb35d7e149c9d2a1ac44c9270b11780a5bfcda.tar.gz
poezio-25fb35d7e149c9d2a1ac44c9270b11780a5bfcda.tar.bz2
poezio-25fb35d7e149c9d2a1ac44c9270b11780a5bfcda.tar.xz
poezio-25fb35d7e149c9d2a1ac44c9270b11780a5bfcda.zip
Things related to priority, fixes #2266 (imo)
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 87f27e17..5fcdf8a3 100644
--- a/src/core.py
+++ b/src/core.py
@@ -971,6 +971,8 @@ class Core(object):
return tab
new_tab = tabs.ConversationTab(jid)
# insert it in the rooms
+ if not focus:
+ new_tab.state = "private"
self.add_tab(new_tab, focus)
self.refresh_window()
return new_tab
@@ -989,6 +991,8 @@ class Core(object):
own_nick = room.own_nick
r = Room(complete_jid, own_nick) # PrivateRoom here
new_tab = tabs.PrivateTab(r)
+ if not focus:
+ new_tab.state = "private"
# insert it in the tabs
self.add_tab(new_tab, focus)
# self.window.new_room(r)