summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-05 21:28:11 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-05 21:28:11 +0000
commit2102085f9ee65f1c65729096ac259fa1964798ea (patch)
treec471f22387cf2a3762a61789c0b94516d4c2cdf4
parente59da58dd84333d4579f77da4e2fc2f1630e0f6b (diff)
downloadpoezio-2102085f9ee65f1c65729096ac259fa1964798ea.tar.gz
poezio-2102085f9ee65f1c65729096ac259fa1964798ea.tar.bz2
poezio-2102085f9ee65f1c65729096ac259fa1964798ea.tar.xz
poezio-2102085f9ee65f1c65729096ac259fa1964798ea.zip
fix a bug on /bookmark when there's only one bookmark
-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)