Skip to content

Commit

Permalink
Merge 00e8321 into 4c1f5c0
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Aug 14, 2018
2 parents 4c1f5c0 + 00e8321 commit 7b75a41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/preferencesinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ PreferencesWidget::PreferencesWidget(const QString &pName, QWidget *pParent) :
mSettings->beginGroup(pName);
}

mSettings->beginGroup("Preferences");
mSettings->beginGroup(SettingsPreferences);
}

//==============================================================================
Expand Down Expand Up @@ -97,7 +97,7 @@ QVariant PreferencesInterface::preference(const QString &pName,
settings.beginGroup(pName);
}

settings.beginGroup("Preferences");
settings.beginGroup(Preferences::SettingsPreferences);

return settings.value(pKey, pDefaultValue);
}
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/preferencesinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ namespace Preferences {

//==============================================================================

static const auto SettingsPreferences = QStringLiteral("Preferences");

//==============================================================================

static const auto GeneralPreferences = QStringLiteral("General");

//==============================================================================
Expand Down

0 comments on commit 7b75a41

Please sign in to comment.