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

Avoid potential typo

parent ae6c5843
Pipeline #74308 passed with stage
in 11 minutes and 9 seconds
......@@ -32,7 +32,10 @@
#include <QVBoxLayout>
using namespace PimCommon;
namespace
{
static const char myTranslatorWidgetConfigGroupName[] = "TranslatorWidget";
}
class Q_DECL_HIDDEN TranslatorWidget::TranslatorWidgetPrivate
{
public:
......@@ -164,7 +167,7 @@ TranslatorWidget::~TranslatorWidget()
void TranslatorWidget::writeConfig()
{
KConfigGroup myGroup(KSharedConfig::openConfig(), "TranslatorWidget");
KConfigGroup myGroup(KSharedConfig::openConfig(), myTranslatorWidgetConfigGroupName);
if (d->languageSettingsChanged) {
myGroup.writeEntry(QStringLiteral("FromLanguage"), d->from->itemData(d->from->currentIndex()).toString());
myGroup.writeEntry("ToLanguage", d->to->itemData(d->to->currentIndex()).toString());
......@@ -175,7 +178,7 @@ void TranslatorWidget::writeConfig()
void TranslatorWidget::readConfig()
{
KConfigGroup myGroup(KSharedConfig::openConfig(), "TranslatorWidget");
KConfigGroup myGroup(KSharedConfig::openConfig(), myTranslatorWidgetConfigGroupName);
const QString from = myGroup.readEntry(QStringLiteral("FromLanguage"));
const QString to = myGroup.readEntry(QStringLiteral("ToLanguage"));
if (from.isEmpty()) {
......
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