Renamed bookmark_add to add in bookmark manager.

This commit is contained in:
Antoni Boucher 2015-07-11 19:12:18 -04:00
parent 8159c5f567
commit 4bc2f63608
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ __pycache__
/.tox
/testresults.html
/.cache
TODO

View File

@ -95,7 +95,7 @@ class BookmarkManager(QObject):
for tpl in self.bookmarks.items()]
self._lineparser.save()
def bookmark_add(self, win_id, url, title):
def add(self, win_id, url, title):
"""Add a new bookmark.
Args:

View File

@ -1062,7 +1062,7 @@ class CommandDispatcher:
def bookmark_add(self):
"""Save the current page as a bookmark."""
bookmark_manager = objreg.get('bookmark-manager')
bookmark_manager.bookmark_add(self._win_id, self._current_url(),
bookmark_manager.add(self._win_id, self._current_url(),
self._current_title())
@cmdutils.register(instance='command-dispatcher', scope='window',