diff options
author | Antoni Boucher <bouanto@zoho.com> | 2015-07-11 19:12:18 -0400 |
---|---|---|
committer | Antoni Boucher <bouanto@zoho.com> | 2015-07-11 19:18:45 -0400 |
commit | 4bc2f63608afc314d30c3bc4ef50ad0e977e6d25 (patch) | |
tree | b89a38ac5851e1c19504b629877deceae910cf61 | |
parent | 8159c5f56703b8f0fc6323763f0109131c604566 (diff) | |
download | qutebrowser-4bc2f63608afc314d30c3bc4ef50ad0e977e6d25.tar.gz qutebrowser-4bc2f63608afc314d30c3bc4ef50ad0e977e6d25.zip |
Renamed bookmark_add to add in bookmark manager.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | qutebrowser/browser/bookmarks.py | 2 | ||||
-rw-r--r-- | qutebrowser/browser/commands.py | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index 696cdc775..6d95e92f4 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ __pycache__ /.tox /testresults.html /.cache +TODO diff --git a/qutebrowser/browser/bookmarks.py b/qutebrowser/browser/bookmarks.py index 1634f4f2e..0343af924 100644 --- a/qutebrowser/browser/bookmarks.py +++ b/qutebrowser/browser/bookmarks.py @@ -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: diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 4335dd1de..a15ad79dd 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1062,8 +1062,8 @@ 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(), - self._current_title()) + bookmark_manager.add(self._win_id, self._current_url(), + self._current_title()) @cmdutils.register(instance='command-dispatcher', scope='window', maxsplit=0, |