summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/urlmarks.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/browser/urlmarks.py')
-rw-r--r--qutebrowser/browser/urlmarks.py24
1 files changed, 8 insertions, 16 deletions
diff --git a/qutebrowser/browser/urlmarks.py b/qutebrowser/browser/urlmarks.py
index 2ae8fbbe1..2d2563a1a 100644
--- a/qutebrowser/browser/urlmarks.py
+++ b/qutebrowser/browser/urlmarks.py
@@ -1,20 +1,7 @@
-# Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
-# Copyright 2015-2018 Antoni Boucher <bouanto@zoho.com>
+# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
+# SPDX-FileCopyrightText: Antoni Boucher <bouanto@zoho.com>
#
-# This file is part of qutebrowser.
-#
-# qutebrowser is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# qutebrowser is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>.
+# SPDX-License-Identifier: GPL-3.0-or-later
"""Managers for bookmarks and quickmarks.
@@ -111,6 +98,11 @@ class UrlMarkManager(QObject):
del self.marks[key]
self.changed.emit()
+ def clear(self):
+ """Delete all marks."""
+ self.marks.clear()
+ self.changed.emit()
+
class QuickmarkManager(UrlMarkManager):