diff options
| author | Karol Kosek <krkk@krkk.ct8.pl> | 2020-12-30 15:45:03 +0100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2020-12-30 20:31:39 +0100 |
| commit | 07a4ddc230c11c7249acd4c0363c6075e939f11b (patch) | |
| tree | e6330578c94bedfdc9b552cecbc8a874cc2713b9 /src/browsertab.cpp | |
| parent | 80f64ff08cb3234c124cee786118c8e356942922 (diff) | |
| download | kristall-07a4ddc230c11c7249acd4c0363c6075e939f11b.tar.gz | |
Use multi-arg overload to save memory allocations
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 7d4de95..601ddd0 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -646,8 +646,7 @@ Info: MIME Type: %1 File Size: %2 )md") - .arg(mime.type) - .arg(IoUtil::size_human(data.size()))); + .arg(mime.type, data.size())); } assert((document != nullptr) == (doc_type == Text)); @@ -1159,9 +1158,9 @@ bool BrowserTab::startRequest(const QUrl &url, ProtocolHandler::RequestOptions o auto answer = QMessageBox::question( this, "Kristall", - tr("Your client certificate has a host filter enabled and this site does not match the host filter.\r\nNew URL: %1\r\nHost Filter: %2\r\nDo you want to keep the certificate enabled?") - .arg(url.toString(QUrl::FullyEncoded | QUrl::RemoveFragment)) - .arg(this->current_identity.host_filter), + tr("Your client certificate has a host filter enabled and this site does not match the host filter.\r\n" + "New URL: %1\r\nHost Filter: %2\r\nDo you want to keep the certificate enabled?") + .arg(url.toString(QUrl::FullyEncoded | QUrl::RemoveFragment), this->current_identity.host_filter), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ); |
