Only display domain name in browser access confirm dialog

* Prevents dialog from growing in width if there is a really long url requesting access.
This commit is contained in:
Jonathan White 2020-08-02 09:07:49 -04:00
parent 60317ffadd
commit 51f3014028
3 changed files with 6 additions and 4 deletions

View file

@ -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);