Changeset 9089

Show
Ignore:
Timestamp:
12/03/07 20:39:40 (12 months ago)
Author:
jim++
Message:

Readd part of [8904] removed in [8938]. Then mix them. So we fix #3495/#3506 and problem when connecting
with an already used nick.
Fixes problem when we change nick with dialog to an already used one and then cancel. Fixes #3506.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/groupchat_control.py

    r9076 r9089  
    15381538                                return 
    15391539                        gajim.connections[self.account].join_gc(nick, self.room_jid, None) 
    1540                         self.nick = nick 
     1540                        if gajim.gc_connected[self.account][self.room_jid]: 
     1541                                # We are changing nick, we will change self.nick when we receive  
     1542                                # presence that inform that it works 
     1543                                self.new_nick = nick 
     1544                        else: 
     1545                                # We are connecting, we will not get a changed nick presence so 
     1546                                # change it NOW. We don't already have a nick so it's harmless 
     1547                                self.nick = nick 
     1548                def on_cancel(): 
     1549                        self.new_nick = ''  
    15411550                instance = dialogs.InputDialog(title, prompt, proposed_nick, 
    1542                         is_modal = False, ok_handler = on_ok) 
     1551                        is_modal = False, ok_handler = on_ok, cancel_handler = on_cancel) 
    15431552 
    15441553        def minimize(self, status='offline'):