diff --git a/qutebrowser/browser/urlmarks.py b/qutebrowser/browser/urlmarks.py index 90b2defc0..1a5f66b05 100644 --- a/qutebrowser/browser/urlmarks.py +++ b/qutebrowser/browser/urlmarks.py @@ -204,7 +204,8 @@ class QuickmarkManager(UrlMarkManager): if name in self.marks: 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: set_mark() diff --git a/qutebrowser/browser/webkit/webpage.py b/qutebrowser/browser/webkit/webpage.py index e5cbf8e01..7cc4ab2be 100644 --- a/qutebrowser/browser/webkit/webpage.py +++ b/qutebrowser/browser/webkit/webpage.py @@ -137,11 +137,12 @@ class BrowserPage(QWebPage): # QDesktopServices::openUrl with info.url directly - however it # works when we construct a copy of it. url = QUrl(info.url) - msg = "Open external application for {}-link?\nURL: {}".format( - url.scheme(), url.toDisplayString()) + scheme = url.scheme() message.confirm_async( - self._win_id, msg, - functools.partial(QDesktopServices.openUrl, url)) + self._win_id, + title="Open external application for {}-link?".format(scheme), + text="URL: {}".format(url.toDisplayString()), + yes_action=functools.partial(QDesktopServices.openUrl, url)) return True elif (info.domain, info.error) in ignored_errors: log.webview.debug("Ignored error on {}: {} (error domain: {}, "