Fix message.confirm_async calls
This commit is contained in:
parent
bc4e340323
commit
dff20ffe35
@ -204,7 +204,8 @@ class QuickmarkManager(UrlMarkManager):
|
|||||||
|
|
||||||
if name in self.marks:
|
if name in self.marks:
|
||||||
message.confirm_async(
|
message.confirm_async(
|
||||||
win_id, "Override existing quickmark?", set_mark, default=True)
|
win_id, title="Override existing quickmark?",
|
||||||
|
yes_action=set_mark, default=True)
|
||||||
else:
|
else:
|
||||||
set_mark()
|
set_mark()
|
||||||
|
|
||||||
|
@ -137,11 +137,12 @@ class BrowserPage(QWebPage):
|
|||||||
# QDesktopServices::openUrl with info.url directly - however it
|
# QDesktopServices::openUrl with info.url directly - however it
|
||||||
# works when we construct a copy of it.
|
# works when we construct a copy of it.
|
||||||
url = QUrl(info.url)
|
url = QUrl(info.url)
|
||||||
msg = "Open external application for {}-link?\nURL: {}".format(
|
scheme = url.scheme()
|
||||||
url.scheme(), url.toDisplayString())
|
|
||||||
message.confirm_async(
|
message.confirm_async(
|
||||||
self._win_id, msg,
|
self._win_id,
|
||||||
functools.partial(QDesktopServices.openUrl, url))
|
title="Open external application for {}-link?".format(scheme),
|
||||||
|
text="URL: {}".format(url.toDisplayString()),
|
||||||
|
yes_action=functools.partial(QDesktopServices.openUrl, url))
|
||||||
return True
|
return True
|
||||||
elif (info.domain, info.error) in ignored_errors:
|
elif (info.domain, info.error) in ignored_errors:
|
||||||
log.webview.debug("Ignored error on {}: {} (error domain: {}, "
|
log.webview.debug("Ignored error on {}: {} (error domain: {}, "
|
||||||
|
Loading…
Reference in New Issue
Block a user