Changeset 9820
- Timestamp:
- 06/18/08 06:11:11 (6 months ago)
- Files:
-
- 1 modified
-
trunk/src/gajim.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gajim.py
r9819 r9820 2313 2313 2314 2314 if type_ == 'printed_pm': 2315 session= event.parameters[0]2315 ctrl = event.parameters[0] 2316 2316 elif type_ == 'pm': 2317 2317 session = event.parameters[8] … … 2319 2319 if session and session.control: 2320 2320 ctrl = session.control 2321 el se:2321 elif not ctrl: 2322 2322 room_jid = jid 2323 2323 nick = resource … … 2724 2724 resource=resource) 2725 2725 2726 session = gajim.connections[account].get_or_create_session(fjid, None)2727 2728 if not self.msg_win_mgr.has_window(fjid, account):2729 session.control = self.new_chat(contact, account,2730 resource=resource , session=session)2726 if self.msg_win_mgr.has_window(fjid, account): 2727 ctrl = self.msg_win_mgr.get_chat_controls(fjid, account)[0] 2728 else: 2729 ctrl = self.new_chat(contact, account, 2730 resource=resource) 2731 2731 if len(gajim.events.get_events(account, fjid)): 2732 session.control.read_queue()2733 2734 mw = session.control.parent_win2735 mw.set_active_tab( session.control)2732 ctrl.read_queue() 2733 2734 mw = ctrl.parent_win 2735 mw.set_active_tab(ctrl) 2736 2736 # For JEP-0172 2737 2737 if added_to_roster: 2738 session.control.user_nick = gajim.nicks[account]2738 ctrl.user_nick = gajim.nicks[account] 2739 2739 2740 2740 def on_open_chat_window(self, widget, contact, account, resource=None,
