Commit 9c6a36a9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use openStateConfig for storing window size

parent ccf70d78
Pipeline #56706 passed with stage
in 11 minutes and 41 seconds
......@@ -117,7 +117,7 @@ void ImportImapSettingWizard::next()
void ImportImapSettingWizard::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "SieveEditorConfigureDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SieveEditorConfigureDialog");
const QSize size = group.readEntry("Size", QSize(600, 400));
if (size.isValid()) {
resize(size);
......@@ -126,7 +126,7 @@ void ImportImapSettingWizard::readConfig()
void ImportImapSettingWizard::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "SieveEditorConfigureDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SieveEditorConfigureDialog");
group.writeEntry("Size", size());
group.sync();
}
......
......@@ -46,7 +46,7 @@ ServerSieveSettingsDialog::~ServerSieveSettingsDialog()
void ServerSieveSettingsDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "ServerSieveSettingsDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "ServerSieveSettingsDialog");
const QSize size = group.readEntry("Size", QSize(450, 350));
if (size.isValid()) {
resize(size);
......@@ -55,7 +55,7 @@ void ServerSieveSettingsDialog::readConfig()
void ServerSieveSettingsDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "ServerSieveSettingsDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "ServerSieveSettingsDialog");
group.writeEntry("Size", size());
group.sync();
}
......
......@@ -106,7 +106,7 @@ void SieveEditorConfigureDialog::saveServerSieveConfig()
void SieveEditorConfigureDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "SieveEditorConfigureDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SieveEditorConfigureDialog");
const QSize size = group.readEntry("Size", QSize(600, 400));
if (size.isValid()) {
resize(size);
......@@ -115,7 +115,7 @@ void SieveEditorConfigureDialog::readConfig()
void SieveEditorConfigureDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "SieveEditorConfigureDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SieveEditorConfigureDialog");
group.writeEntry("Size", size());
group.sync();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment