[mythtv] Correct way to write out to the settings table?

Matt Zimmerman mdz at debian.org
Sat Feb 22 13:37:37 EST 2003

On Sun, Feb 23, 2003 at 02:53:07AM +1300, Drew Whittle wrote:

> Yup, it doesn't like that, in fact what it likes (as in compiles and
> runs but doesn't work) is
>         AppearanceSettings as;
>         as.save(db);

You're not showing us the entire code fragment.  How are you setting the
value?  It sounds like you're setting it in one place (gContext) and saving
it in another (AppearanceSettings).  AppearanceSettings (and the other
groups) are collections of settings which can be manipulated independently
from the active settings.  So you're creating a new batch of settings (with
the defaults) and then writing that to the db, which is clearly not what you

There's no need to do anything with AppearanceSettings unless you want to
work with all of those settings.  It just happens that the underlying
classes for individual settings are private to globalsettings.cpp at the

 - mdz

More information about the mythtv-dev mailing list