diff options
Diffstat (limited to 'qutebrowser/utils/standarddir.py')
-rw-r--r-- | qutebrowser/utils/standarddir.py | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/qutebrowser/utils/standarddir.py b/qutebrowser/utils/standarddir.py index 884a26376..2d2ae53f9 100644 --- a/qutebrowser/utils/standarddir.py +++ b/qutebrowser/utils/standarddir.py @@ -1,19 +1,6 @@ -# Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> +# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # -# 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 """Utilities to get and initialize data/config paths.""" @@ -28,7 +15,7 @@ from typing import Iterator, Optional from qutebrowser.qt.core import QStandardPaths from qutebrowser.qt.widgets import QApplication -from qutebrowser.utils import log, debug, utils, version +from qutebrowser.utils import log, debug, utils, version, qtutils # The cached locations _locations = {} @@ -65,7 +52,7 @@ def _unset_organization() -> Iterator[None]: qapp = QApplication.instance() if qapp is not None: orgname = qapp.organizationName() - qapp.setOrganizationName(None) # type: ignore[arg-type] + qapp.setOrganizationName(qtutils.QT_NONE) try: yield finally: |