Fixed to avoid having duplicate bookmarks.

This commit is contained in:
Antoni Boucher 2015-06-07 20:16:45 -04:00
parent d93732a6b3
commit 31eed6c9a6

View File

@ -116,10 +116,13 @@ class BookmarkManager(QObject):
message.error(win_id, "Can't set mark with empty URL!")
return
if urlstr in self.bookmarks:
message.error(win_id, "Bookmark already exists!")
else:
self.bookmarks[urlstr] = title
self.changed.emit()
self.added.emit(title, urlstr)
message.info(win_id, "Bookmarks added")
message.info(win_id, "Bookmark added")
def bookmark_del(self, url):
"""Delete a bookmark.