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 /.tox
/testresults.html /testresults.html
/.cache /.cache
TODO

View File

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

View File

@ -1062,8 +1062,8 @@ class CommandDispatcher:
def bookmark_add(self): def bookmark_add(self):
"""Save the current page as a bookmark.""" """Save the current page as a bookmark."""
bookmark_manager = objreg.get('bookmark-manager') 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()) self._current_title())
@cmdutils.register(instance='command-dispatcher', scope='window', @cmdutils.register(instance='command-dispatcher', scope='window',
maxsplit=0, maxsplit=0,