[TuX] remove spaces in room jids when they are entered in manage bookmarks window. Fixes #3730

This commit is contained in:
Yann Leboulanger 2008-02-10 20:02:32 +00:00
parent cc6b2dd7a1
commit fd9d901173
1 changed files with 3 additions and 3 deletions

View File

@ -2910,9 +2910,9 @@ class ManageBookmarksWindow:
def on_server_entry_changed(self, widget):
(model, iter) = self.selection.get_selected()
if iter:
room_jid = self.room_entry.get_text().decode('utf-8') + '@' + \
self.server_entry.get_text().decode('utf-8')
model[iter][2] = room_jid
room_jid = self.room_entry.get_text().decode('utf-8').strip() + '@' + \
self.server_entry.get_text().decode('utf-8').strip()
model[iter][2] = room_jid.replace(' ', '')
def on_room_entry_changed(self, widget):
(model, iter) = self.selection.get_selected()