diff options
| author | Karol Kosek <krkk@krkk.ct8.pl> | 2021-01-16 11:29:33 +0100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-16 12:46:24 +0100 |
| commit | fa2df5fdeea9153523f3d50e0be50718ba13f670 (patch) | |
| tree | f8f17a1d6b4f0bdbb8bbe80c11ea3416509cbabf /src/browsertab.cpp | |
| parent | 3bdbb94cb9ffc1cc740de060016152be769b897c (diff) | |
| download | kristall-fa2df5fdeea9153523f3d50e0be50718ba13f670.tar.gz | |
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.
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
