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:
parent
226c1acbd1
commit
109f8e0d3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user