diff options
-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, |