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

Fix potential typo

parent 9b69ac18
Pipeline #118886 passed with stage
in 3 minutes and 38 seconds
......@@ -714,6 +714,11 @@ QGpgME::CryptoConfigEntry *SMIMECryptoConfigEntries::configEntry(const QString &
return entry;
}
namespace
{
static const char myGpgSettingsDialogGroupName[] = "GpgSettingsDialog";
}
GpgSettingsDialog::GpgSettingsDialog(QWidget *parent)
: KCMultiDialog(parent)
{
......@@ -727,7 +732,7 @@ GpgSettingsDialog::~GpgSettingsDialog()
void GpgSettingsDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "GpgSettingsDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myGpgSettingsDialogGroupName);
const QSize size = group.readEntry("Size", QSize(600, 400));
if (size.isValid()) {
resize(size);
......@@ -736,7 +741,7 @@ void GpgSettingsDialog::readConfig()
void GpgSettingsDialog::saveConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "GpgSettingsDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myGpgSettingsDialogGroupName);
group.writeEntry("Size", size());
group.sync();
}
......@@ -97,6 +97,11 @@ private:
QHash<qint64, bool> mFilterCollections;
};
namespace
{
static const char myIncompleteIndexDialogGroupName[] = "IncompleteIndexDialog";
}
IncompleteIndexDialog::IncompleteIndexDialog(const QVector<qint64> &unindexedCollections, QWidget *parent)
: QDialog(parent)
, mUi(new Ui::IncompleteIndexDialog)
......@@ -140,7 +145,7 @@ IncompleteIndexDialog::~IncompleteIndexDialog()
void IncompleteIndexDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "IncompleteIndexDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myIncompleteIndexDialogGroupName);
const QSize size = group.readEntry("Size", QSize(500, 400));
if (size.isValid()) {
resize(size);
......@@ -149,7 +154,7 @@ void IncompleteIndexDialog::readConfig()
void IncompleteIndexDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "IncompleteIndexDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myIncompleteIndexDialogGroupName);
group.writeEntry("Size", size());
group.sync();
}
......
......@@ -26,6 +26,10 @@
#include <QVBoxLayout>
using namespace KMail;
namespace
{
static const char myTagSelectDialogGroupName[] = "TagSelectDialog";
}
TagSelectDialog::TagSelectDialog(QWidget *parent, int numberOfSelectedMessages, const Akonadi::Item &selectedItem)
: QDialog(parent)
......@@ -77,7 +81,7 @@ TagSelectDialog::~TagSelectDialog()
void TagSelectDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "TagSelectDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myTagSelectDialogGroupName);
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
resize(size);
......@@ -86,7 +90,7 @@ void TagSelectDialog::readConfig()
void TagSelectDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "TagSelectDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), myTagSelectDialogGroupName);
group.writeEntry("Size", size());
}
......
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