Commit c6f11746 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: Use KSharedConfig::openStateConfig for storing window size

parent 2eca2d11
Pipeline #58551 failed with stage
in 24 minutes and 31 seconds
......@@ -86,7 +86,7 @@ ConfigDialog::~ConfigDialog()
void ConfigDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "ConfigDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "ConfigDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -95,7 +95,7 @@ void ConfigDialog::readConfig()
void ConfigDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "ConfigDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "ConfigDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......
......@@ -67,7 +67,7 @@ UrlConfigurationDialog::~UrlConfigurationDialog()
void UrlConfigurationDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "UrlConfigurationDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "UrlConfigurationDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -76,7 +76,7 @@ void UrlConfigurationDialog::readConfig()
void UrlConfigurationDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "UrlConfigurationDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "UrlConfigurationDialog");
grp.writeEntry("Size", size());
grp.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