aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2020-12-30 15:45:03 +0100
committerFelix Queißner <felix@ib-queissner.de>2020-12-30 20:31:39 +0100
commit07a4ddc230c11c7249acd4c0363c6075e939f11b (patch)
treee6330578c94bedfdc9b552cecbc8a874cc2713b9 /src/browsertab.cpp
parent80f64ff08cb3234c124cee786118c8e356942922 (diff)
downloadkristall-07a4ddc230c11c7249acd4c0363c6075e939f11b.tar.gz
Use multi-arg overload to save memory allocations
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp9
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
);