Show
Ignore:
Timestamp:
01/06/07 12:00:50 (23 months ago)
Author:
asterix
Message:

merge changeset from trunk except pyopenssl stuff

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11/src/dialogs.py

    r7638 r7787  
    640640                        message= '' 
    641641                group = self.group_comboboxentry.child.get_text().decode('utf-8') 
     642                groups = [] 
     643                if group: 
     644                        groups = [group] 
    642645                auto_auth = self.auto_authorize_checkbutton.get_active() 
    643646                gajim.interface.roster.req_sub(self, jid, message, self.account, 
    644                         groups = [group], nickname = nickname, auto_auth = auto_auth) 
     647                        groups = groups, nickname = nickname, auto_auth = auto_auth) 
    645648                self.window.destroy() 
    646649 
     
    906909                ErrorDialog(_('Unable to bind to port %s.') % port, 
    907910                        _('Maybe you have another running instance of Gajim. ' 
    908                         'File Transfer will be canceled.')) 
     911                        'File Transfer will be cancelled.')) 
    909912 
    910913class ConfirmationDialog(HigDialog): 
     
    920923        '''HIG compliant non modal confirmation dialog.''' 
    921924        def __init__(self, pritext, sectext='', on_response_ok = None, 
    922                         on_response_cancel = None): 
     925        on_response_cancel = None): 
    923926                HigDialog.__init__(self, None,  
    924927                        gtk.MESSAGE_QUESTION, gtk.BUTTONS_OK_CANCEL, pritext, sectext, 
     
    12331236                gajim.config.set('recently_groupchat', 
    12341237                        ' '.join(self.recently_groupchat)) 
     1238 
     1239                if self.xml.get_widget('auto_join_checkbutton').get_active(): 
     1240                        # create the bookmark-dict 
     1241                        # is it already bookmarked ? 
     1242                        room_jid_bookmarked = False 
     1243                        for bmdict in gajim.connections[self.account].bookmarks: 
     1244                                if bmdict['jid'] == room_jid: 
     1245                                        room_jid_bookmarked = True 
     1246                                        break 
     1247                        if not room_jid_bookmarked: 
     1248                                name = gajim.get_nick_from_jid(room_jid) 
     1249                                bmdict = { 'name': name, 'jid': room_jid, 'autojoin': u'1', 
     1250                                        'password': password, 'nick': nickname, 
     1251                                        'print_status': gajim.config.get('print_status_in_muc')} 
     1252 
     1253                                gajim.connections[self.account].bookmarks.append(bmdict) 
     1254                                gajim.connections[self.account].store_bookmarks() 
    12351255 
    12361256                if self.automatic: