Commit 05950bf1 authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix group name

parent c3b92566
Pipeline #237328 passed with stage
in 2 minutes and 2 seconds
......@@ -14,6 +14,11 @@
#include <QVBoxLayout>
#include <QWindow>
namespace
{
static const char myServerSieveSettingsDialog[] = "ServerSieveSettingsDialog";
}
ServerSieveSettingsDialog::ServerSieveSettingsDialog(QWidget *parent)
: QDialog(parent)
{
......@@ -50,14 +55,14 @@ void ServerSieveSettingsDialog::readConfig()
{
create(); // ensure a window is created
windowHandle()->resize(QSize(450, 350));
KConfigGroup group(KSharedConfig::openStateConfig(), "ServerSieveSettingsDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myServerSieveSettingsDialog);
KWindowConfig::restoreWindowSize(windowHandle(), group);
resize(windowHandle()->size()); // workaround for QTBUG-40584
}
void ServerSieveSettingsDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "ServerSieveSettingsDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myServerSieveSettingsDialog);
KWindowConfig::saveWindowSize(windowHandle(), group);
group.sync();
}
......
......@@ -26,6 +26,11 @@
#include <QVBoxLayout>
#include <QWindow>
namespace
{
static const char mySieveEditorConfigureDialog[] = "SieveEditorConfigureDialog";
}
SieveEditorConfigureDialog::SieveEditorConfigureDialog(QWidget *parent)
: KPageDialog(parent)
{
......@@ -109,14 +114,14 @@ void SieveEditorConfigureDialog::readConfig()
{
create(); // ensure a window is created
windowHandle()->resize(QSize(600, 400));
KConfigGroup group(KSharedConfig::openStateConfig(), "SieveEditorConfigureDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), mySieveEditorConfigureDialog);
KWindowConfig::restoreWindowSize(windowHandle(), group);
resize(windowHandle()->size()); // workaround for QTBUG-40584
}
void SieveEditorConfigureDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "SieveEditorConfigureDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), mySieveEditorConfigureDialog);
KWindowConfig::saveWindowSize(windowHandle(), group);
group.sync();
}
Supports Markdown
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