Yann Leboulanger pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/config.py
    ... ... @@ -2119,7 +2119,12 @@ class ManageBookmarksWindow:
    2119 2119
             # Fill in the data for childs
    
    2120 2120
             self.title_entry.set_text(model[iter_][1])
    
    2121 2121
             room_jid = model[iter_][2]
    
    2122
    -        (room, server) = room_jid.split('@')
    
    2122
    +        room_jid_s = room_jid.split('@')
    
    2123
    +        if len(room_jid_s) == 1:
    
    2124
    +            room = ''
    
    2125
    +            server = room_jid
    
    2126
    +        else:
    
    2127
    +            (room, server) = room_jid_s
    
    2123 2128
             self.room_entry.handler_block(self.room_entry_changed_id)
    
    2124 2129
             self.room_entry.set_text(room)
    
    2125 2130
             self.room_entry.handler_unblock(self.room_entry_changed_id)