From 109f8e0d3a62eba601f332a12a73825c50571e82 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sun, 28 Aug 2022 04:42:23 +0200 Subject: [PATCH] Show Ask for Default permission if set to Default Signed-off-by: Juraj Oravec --- src/lib/other/siteinfopermissionitem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/other/siteinfopermissionitem.cpp b/src/lib/other/siteinfopermissionitem.cpp index 3eb00a4cd..4317f62ea 100644 --- a/src/lib/other/siteinfopermissionitem.cpp +++ b/src/lib/other/siteinfopermissionitem.cpp @@ -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