1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Show Ask for Default permission if set to Default

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-08-28 04:42:23 +02:00
parent 226c1acbd1
commit 109f8e0d3a
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -92,7 +92,11 @@ void SiteInfoPermissionItem::setPermission(SiteSettingsManager::Permission permi
m_ui->radioDefault->setChecked(true);
}
m_ui->labelDefaultPermission->setText(mApp->siteSettingsManager()->getPermissionName(mApp->siteSettingsManager()->getDefaultPermission(m_option)));
auto defaultPermission = mApp->siteSettingsManager()->getDefaultPermission(m_option);
if (defaultPermission == SiteSettingsManager::Default) {
defaultPermission = SiteSettingsManager::Ask;
}
m_ui->labelDefaultPermission->setText(mApp->siteSettingsManager()->getPermissionName(defaultPermission));
}
SiteSettingsManager::Permission SiteInfoPermissionItem::permission() const