summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui.py b/src/gui.py
index beca26db..cc0fcb1b 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -999,7 +999,10 @@ class Gui(object):
bookmarked.remove(room)
break
bookmarked = ':'.join(bookmarked)
- bookmarks = bookmarked+':'+res
+ if bookmarked:
+ bookmarks = bookmarked+':'+res
+ else:
+ bookmarks = res
config.set_and_save('rooms', bookmarks)
self.information(_('Your bookmarks are now: %s') % bookmarks)