Fixed synchronization (correct path to Valentina settings)

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-10-18 16:13:51 +03:00
parent fd12524011
commit 251cd94407

View File

@ -98,7 +98,7 @@ QString VSettings::GetPathPattern() const
//---------------------------------------------------------------------------------------------------------------------
void VSettings::SetPathPattern(const QString &value)
{
QSettings settings(this->format(), this->scope(), this->organizationName());
QSettings settings(this->format(), this->scope(), this->organizationName(), this->applicationName());
settings.setValue(SettingPathsPattern, value);
settings.sync();
}
@ -106,14 +106,14 @@ void VSettings::SetPathPattern(const QString &value)
//---------------------------------------------------------------------------------------------------------------------
QString VSettings::GetPathLayout() const
{
QSettings settings(this->format(), this->scope(), this->organizationName());
QSettings settings(this->format(), this->scope(), this->organizationName(), this->applicationName());
return settings.value(SettingPathsLayout, QDir::homePath()).toString();
}
//---------------------------------------------------------------------------------------------------------------------
void VSettings::SetPathLayout(const QString &value)
{
QSettings settings(this->format(), this->scope(), this->organizationName());
QSettings settings(this->format(), this->scope(), this->organizationName(), this->applicationName());
settings.setValue(SettingPathsLayout, value);
settings.sync();
}