Skip to content

Commit

Permalink
Merge branch 'main' into edit
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston committed Sep 13, 2023
2 parents 67b2a3a + b61268c commit 336a99c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/tlPlayQtApp/SettingsObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ namespace tl
void SettingsObject::setDefaultValue(const QString& name, const QVariant& value)
{
TLRENDER_P();
if (!p.settings.contains(name))
if (!p.settings.contains(version(name)))
{
p.settings.setValue(name, value);
p.settings.setValue(version(name), value);
}
p.defaultValues[name] = value;
p.defaultValues[version(name)] = value;
}

const QList<QString>& SettingsObject::recentFiles() const
Expand All @@ -111,9 +111,9 @@ namespace tl
void SettingsObject::setValue(const QString& name, const QVariant& value)
{
TLRENDER_P();
if (!p.settings.contains(name))
if (!p.settings.contains(version(name)))
{
p.defaultValues[name] = value;
p.defaultValues[version(name)] = value;
}
p.settings.setValue(version(name), value);
if (name == "Misc/ToolTipsEnabled")
Expand Down

0 comments on commit 336a99c

Please sign in to comment.