diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-11-28 17:14:40 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-11-28 17:15:23 +0100 |
commit | f92c2f012fb51c6d365d8645e91d912fcdf49bc1 (patch) | |
tree | 648ec2f14d98f0a79fcebe940e7b2eeaa1d3ed40 /qutebrowser | |
parent | bb3cbdaa658c3140dedba395293a532fd370449a (diff) | |
download | qutebrowser-f92c2f012fb51c6d365d8645e91d912fcdf49bc1.tar.gz qutebrowser-f92c2f012fb51c6d365d8645e91d912fcdf49bc1.zip |
More QUrl problems
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/browser/hints.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 7e1be9662..1fe019963 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -255,7 +255,9 @@ class HintActions: flags = QUrl.ComponentFormattingOption.FullyEncoded | QUrl.UrlFormattingOption.RemovePassword if url.scheme() == 'mailto': flags |= QUrl.UrlFormattingOption.RemoveScheme - urlstr = url.toString(flags) # type: ignore[arg-type] + #urlstr = url.toString(flags) # type: ignore[arg-type] + # FIXME + urlstr = url.toString() new_content = urlstr @@ -356,8 +358,9 @@ class HintActions: url: The URL to open as a QUrl. context: The HintContext to use. """ - urlstr = url.toString( - QUrl.ComponentFormattingOption.FullyEncoded | QUrl.UrlFormattingOption.RemovePassword) # type: ignore[arg-type] + # FIXME + urlstr = url.toString() + #QUrl.ComponentFormattingOption.FullyEncoded | QUrl.UrlFormattingOption.RemovePassword) # type: ignore[arg-type] args = context.get_args(urlstr) commandrunner = runners.CommandRunner(self._win_id) commandrunner.run_safely('spawn ' + ' '.join(args)) |