Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser/BrowserAccessControlDialog.cpp')
-rw-r--r--src/browser/BrowserAccessControlDialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/browser/BrowserAccessControlDialog.cpp b/src/browser/BrowserAccessControlDialog.cpp
index 3268ef2b1..668631055 100644
--- a/src/browser/BrowserAccessControlDialog.cpp
+++ b/src/browser/BrowserAccessControlDialog.cpp
@@ -37,9 +37,11 @@ BrowserAccessControlDialog::~BrowserAccessControlDialog()
{
}
-void BrowserAccessControlDialog::setItems(const QList<Entry*>& items, const QString& hostname, bool httpAuth)
+void BrowserAccessControlDialog::setItems(const QList<Entry*>& items, const QString& urlString, bool httpAuth)
{
- m_ui->siteLabel->setText(m_ui->siteLabel->text().arg(hostname));
+ QUrl url(urlString);
+ m_ui->siteLabel->setText(m_ui->siteLabel->text().arg(
+ url.toDisplayString(QUrl::RemoveUserInfo | QUrl::RemovePath | QUrl::RemoveQuery | QUrl::RemoveFragment)));
m_ui->rememberDecisionCheckBox->setVisible(!httpAuth);
m_ui->rememberDecisionCheckBox->setChecked(false);