1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Disable site permission controls when in Private

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-10-04 21:56:43 +02:00
parent 4fa90d3ad2
commit 28d5b4adff
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -30,6 +30,13 @@ SiteInfoPermissionItem::SiteInfoPermissionItem(const SiteSettingsManager::Permis
{ {
m_ui->setupUi(this); m_ui->setupUi(this);
setPermission(a_permission); setPermission(a_permission);
if (mApp->isPrivate()) {
m_ui->radioAllow->setEnabled(false);
m_ui->radioAsk->setEnabled(false);
m_ui->radioDeny->setEnabled(false);
m_ui->radioDefault->setEnabled(false);
}
} }
SiteInfoPermissionItem::~SiteInfoPermissionItem() SiteInfoPermissionItem::~SiteInfoPermissionItem()