Skip to content

Commit

Permalink
Renamed bookmark_add to add in bookmark manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Jul 11, 2015
1 parent 8159c5f commit 4bc2f63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ __pycache__
/.tox
/testresults.html
/.cache
TODO
2 changes: 1 addition & 1 deletion qutebrowser/browser/bookmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def save(self):
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:
Expand Down
4 changes: 2 additions & 2 deletions qutebrowser/browser/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,8 @@ def quickmark_load(self, name, tab=False, bg=False, window=False):
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(),
self._current_title())
bookmark_manager.add(self._win_id, self._current_url(),
self._current_title())

@cmdutils.register(instance='command-dispatcher', scope='window',
maxsplit=0,
Expand Down

0 comments on commit 4bc2f63

Please sign in to comment.