mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
Preferences: Store default site settings values
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
070e8374b0
commit
cbd3b9fb96
|
@ -277,7 +277,7 @@ SiteSettingsManager::Permission SiteSettingsManager::getDefaultPermission(const
|
||||||
return Deny;
|
return Deny;
|
||||||
}
|
}
|
||||||
|
|
||||||
return testAttribute(attribute);
|
return defaultAttributes[attribute];
|
||||||
}
|
}
|
||||||
|
|
||||||
void SiteSettingsManager::setDefaultPermission(const SiteSettingsManager::PageOptions& option, const int& value)
|
void SiteSettingsManager::setDefaultPermission(const SiteSettingsManager::PageOptions& option, const int& value)
|
||||||
|
|
|
@ -1094,11 +1094,20 @@ void Preferences::saveSettings()
|
||||||
settings.setValue(QSL("Password"), ui->proxyPassword->text());
|
settings.setValue(QSL("Password"), ui->proxyPassword->text());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
|
//SiteSettings
|
||||||
|
settings.beginGroup(QSL("Site-Settings"));
|
||||||
|
for (int i = 0; i < ui->siteSettingsList->count(); ++i) {
|
||||||
|
auto *item = static_cast<SiteInfoPermissionDefaultItem*>(ui->siteSettingsList->itemWidget(ui->siteSettingsList->item(i)));
|
||||||
|
settings.setValue(item->sqlColumn(), item->permission());
|
||||||
|
}
|
||||||
|
settings.endGroup();
|
||||||
|
|
||||||
ProfileManager::setStartingProfile(ui->startProfile->currentText());
|
ProfileManager::setStartingProfile(ui->startProfile->currentText());
|
||||||
|
|
||||||
m_pluginsList->save();
|
m_pluginsList->save();
|
||||||
m_themesManager->save();
|
m_themesManager->save();
|
||||||
mApp->cookieJar()->loadSettings();
|
mApp->cookieJar()->loadSettings();
|
||||||
|
mApp->siteSettingsManager()->loadSettings();
|
||||||
mApp->history()->loadSettings();
|
mApp->history()->loadSettings();
|
||||||
mApp->reloadSettings();
|
mApp->reloadSettings();
|
||||||
mApp->desktopNotifications()->loadSettings();
|
mApp->desktopNotifications()->loadSettings();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user