From 9f6527ce214b1230324eb9f2bd16b8f7fe41e89f Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sun, 28 Aug 2022 03:55:03 +0200 Subject: [PATCH] Change default permission to ask Default value of default was set to default, silly me. Signed-off-by: Juraj Oravec --- src/lib/other/sitesettingsmanager.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/other/sitesettingsmanager.cpp b/src/lib/other/sitesettingsmanager.cpp index dfc81c29f..7b0ea2c6c 100644 --- a/src/lib/other/sitesettingsmanager.cpp +++ b/src/lib/other/sitesettingsmanager.cpp @@ -45,14 +45,14 @@ void SiteSettingsManager::loadSettings() // m_defaults[poAllowImages] = settings.value("allowImages", Default).toInt(); // m_defaults[poAllowCookies] = settings.value("allowCookies", Default).toInt(); // m_defaults[poZoomLevel] = settings.value("defaultZoomLevel", Default).toInt(); // fail - m_defaults[poAllowNotifications] = intToPermission(settings.value("allowNotifications", Default).toInt()); - m_defaults[poAllowGeolocation] = intToPermission(settings.value("allowGealocation", Default).toInt()); - m_defaults[poAllowMediaAudioCapture] = intToPermission(settings.value("allowMicrophone", Default).toInt()); - m_defaults[poAllowMediaVideoCapture] = intToPermission(settings.value("allowCamera", Default).toInt()); - m_defaults[poAllowMediaAudioVideoCapture] = intToPermission(settings.value("allowCameraAndMicrophone", Default).toInt()); - m_defaults[poAllowMouseLock] = intToPermission(settings.value("allowMouseLock", Default).toInt()); - m_defaults[poAllowDesktopVideoCapture] = intToPermission(settings.value("allowDesktopVideoCapture", Default).toInt()); - m_defaults[poAllowDesktopAudioVideoCapture] = intToPermission(settings.value("allowDesktopAudioVideoCapture", Default).toInt()); + m_defaults[poAllowNotifications] = intToPermission(settings.value("allowNotifications", Ask).toInt()); + m_defaults[poAllowGeolocation] = intToPermission(settings.value("allowGealocation", Ask).toInt()); + m_defaults[poAllowMediaAudioCapture] = intToPermission(settings.value("allowMicrophone", Ask).toInt()); + m_defaults[poAllowMediaVideoCapture] = intToPermission(settings.value("allowCamera", Ask).toInt()); + m_defaults[poAllowMediaAudioVideoCapture] = intToPermission(settings.value("allowCameraAndMicrophone", Ask).toInt()); + m_defaults[poAllowMouseLock] = intToPermission(settings.value("allowMouseLock", Ask).toInt()); + m_defaults[poAllowDesktopVideoCapture] = intToPermission(settings.value("allowDesktopVideoCapture", Ask).toInt()); + m_defaults[poAllowDesktopAudioVideoCapture] = intToPermission(settings.value("allowDesktopAudioVideoCapture", Ask).toInt()); settings.endGroup(); }