Fixed synchronization (correct path to Valentina settings)
--HG-- branch : feature
This commit is contained in:
parent
fd12524011
commit
251cd94407
|
@ -98,7 +98,7 @@ QString VSettings::GetPathPattern() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VSettings::SetPathPattern(const QString &value)
|
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.setValue(SettingPathsPattern, value);
|
||||||
settings.sync();
|
settings.sync();
|
||||||
}
|
}
|
||||||
|
@ -106,14 +106,14 @@ void VSettings::SetPathPattern(const QString &value)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QString VSettings::GetPathLayout() const
|
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();
|
return settings.value(SettingPathsLayout, QDir::homePath()).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VSettings::SetPathLayout(const QString &value)
|
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.setValue(SettingPathsLayout, value);
|
||||||
settings.sync();
|
settings.sync();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user