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 committed 2020-08-07 06:24:33 -04:00
1 parent 60317ffadd
commit 51f3014028
3 files changed
+6 -4

No files matched your search

+4 -2
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);