Subversion Repositories svn1

Rev

Rev 174 | Rev 180 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 176
Line 62... Line 62...
62
    int error = 0;
62
    int error = 0;
63
 
63
 
64
    /*
64
    /*
65
    **    Copy original data
65
    **    Copy original data
66
    */
66
    */
67
    MARA_CFG    newcfg = config;
67
    QmConfig newcfg(config);
68
 
68
 
69
    /*
69
    /*
70
    **  Extract the data from the Widgets
70
    **  Extract the data from the Widgets
71
    */
71
    */
72
    for ( int ii = 0; ii < MAX_CLASS; ii++)
72
    for ( int ii = 0; ii < MAX_CLASS; ii++)
Line 152... Line 152...
152
    {
152
    {
153
        printf( "Error: No categories defined\n" );
153
        printf( "Error: No categories defined\n" );
154
        error++;
154
        error++;
155
    }
155
    }
156
 
156
 
157
    newcfg.nonequestrian_class = lookup_class( newcfg.nonequestrian_class_abr, &newcfg );
157
    newcfg.nonequestrian_class = newcfg.lookup_class( newcfg.nonequestrian_class_abr );
158
    if( newcfg.equestrian_leg && newcfg.nonequestrian_class == 0 )
158
    if( newcfg.equestrian_leg && newcfg.nonequestrian_class == 0 )
159
        printf( "WARNING: Non-equestrian class not found\n" );
159
        printf( "WARNING: Non-equestrian class not found\n" );
160
 
160
 
161
    /*
161
    /*
162
    **  Sanity test of the data
162
    **  Sanity test of the data
Line 176... Line 176...
176
 
176
 
177
 
177
 
178
    if ( error == 0 )
178
    if ( error == 0 )
179
    {
179
    {
180
        config = newcfg;
180
        config = newcfg;
181
        QmConfig::write_config();
181
        config.write_config();
182
    }
182
    }
183
 
183
 
184
}
184
}
185
 
185
 
186
void QmConfClass::cancel(void)
186
void QmConfClass::cancel(void)