From 28d5b4adff0bccb5356dd277915f366a180d0c0a Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Tue, 4 Oct 2022 21:56:43 +0200 Subject: [PATCH] Disable site permission controls when in Private Signed-off-by: Juraj Oravec --- src/lib/other/siteinfopermissionitem.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/other/siteinfopermissionitem.cpp b/src/lib/other/siteinfopermissionitem.cpp index 0ca384ce3..48674b21e 100644 --- a/src/lib/other/siteinfopermissionitem.cpp +++ b/src/lib/other/siteinfopermissionitem.cpp @@ -30,6 +30,13 @@ SiteInfoPermissionItem::SiteInfoPermissionItem(const SiteSettingsManager::Permis { m_ui->setupUi(this); 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()