fix options saving

This commit is contained in:
Glenn Maynard
2005-05-10 04:30:51 +00:00
parent 3104b0f5fa
commit ce77b8bbab
@@ -115,6 +115,13 @@ static void MoveData( int &sel, bool &opt, bool ToSel )
template<class T>
static void MoveData( int &sel, Preference<T> &opt, bool ToSel )
{
if( ToSel ) sel = opt;
else opt.Set( sel );
}
template<>
static void MoveData( int &sel, Preference<bool> &opt, bool ToSel )
{
if( ToSel ) sel = opt;
else opt.Set( !!sel );