Show
Ignore:
Timestamp:
12/03/07 20:47:00 (12 months ago)
Author:
asterix
Message:

[Jim] 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
  • branches/gajim_0.11.3-bugfixes/src/groupchat_control.py

    r9018 r9090  
    13911391                                return 
    13921392                        gajim.connections[self.account].join_gc(nick, self.room_jid, None) 
    1393                         self.nick = nick 
     1393                        if gajim.gc_connected[self.account][self.room_jid]: 
     1394                                # We are changing nick, we will change self.nick when we receive  
     1395                                # presence that inform that it works 
     1396                                self.new_nick = nick 
     1397                        else: 
     1398                                # We are connecting, we will not get a changed nick presence so 
     1399                                # change it NOW. We don't already have a nick so it's harmless 
     1400                                self.nick = nick 
     1401                def on_cancel(): 
     1402                        self.new_nick = ''  
    13941403 
    13951404                instance = dialogs.InputDialog(title, prompt, proposed_nick, 
    1396                         is_modal = False, ok_handler = on_ok) 
     1405                        is_modal = False, ok_handler = on_ok, cancel_handler = on_cancel) 
    13971406 
    13981407        def shutdown(self, status='offline'):