From fa2df5fdeea9153523f3d50e0be50718ba13f670 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 16 Jan 2021 11:29:33 +0100 Subject: BrowserTab: fix showing an empty redirect question box The question box was showed when the redirect has a different scheme or host, without checking first if you want to see the it, which could lead to an empty dialog box instead of skipping it entirely. --- src/browsertab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 1682069..7aa9ebf 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -865,7 +865,7 @@ void BrowserTab::on_redirected(QUrl uri, bool is_permanent) ).arg(uri.host()); } - if(is_cross_protocol or is_cross_host) + if (!question.isEmpty()) { auto answer = QMessageBox::question( this, -- cgit v1.2.3