Yann Leboulanger pushed to branch master at gajim / gajim

Commits:
93b50bf1 by Yann Leboulanger at 2018-04-07T22:01:39+02:00
prevent a traceback with wrong bookmarks. Fixes #9055

- - - - -


1 changed file:

- gajim/config.py


Changes:

=====================================
gajim/config.py
=====================================
--- a/gajim/config.py
+++ b/gajim/config.py
@@ -2119,7 +2119,12 @@ class ManageBookmarksWindow:
         # Fill in the data for childs
         self.title_entry.set_text(model[iter_][1])
         room_jid = model[iter_][2]
-        (room, server) = room_jid.split('@')
+        room_jid_s = room_jid.split('@')
+        if len(room_jid_s) == 1:
+            room = ''
+            server = room_jid
+        else:
+            (room, server) = room_jid_s
         self.room_entry.handler_block(self.room_entry_changed_id)
         self.room_entry.set_text(room)
         self.room_entry.handler_unblock(self.room_entry_changed_id)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/93b50bf1f66359c7b32ca046ed5d769d9fdd4a56

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/93b50bf1f66359c7b32ca046ed5d769d9fdd4a56
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to