Subversion Repositories svn1-original

Rev

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

Rev 178 Rev 180
Line 71... Line 71...
71
    int num_teams = 0;
71
    int num_teams = 0;
72
 
72
 
73
    /*
73
    /*
74
    **    Copy original data
74
    **    Copy original data
75
    */
75
    */
76
    MARA_CFG    newcfg = config;
76
    QmConfig    newcfg(config);
77
 
77
 
78
    /*
78
    /*
79
    **  Extract data from Widgets
79
    **  Extract data from Widgets
80
    */
80
    */
81
    strncpy(newcfg.event_name, qPrintable(ui->eventName->text()), sizeof(newcfg.event_name)) ;
81
    strncpy(newcfg.event_name, qPrintable(ui->eventName->text()), sizeof(newcfg.event_name)) ;
Line 235... Line 235...
235
        }
235
        }
236
 
236
 
237
        /*
237
        /*
238
         **  Ensure that the entered non-equestrian class name does exist
238
         **  Ensure that the entered non-equestrian class name does exist
239
         */
239
         */
240
        newcfg.nonequestrian_class = lookup_class( newcfg.nonequestrian_class_abr, &newcfg );
240
        newcfg.nonequestrian_class = newcfg.lookup_class( newcfg.nonequestrian_class_abr );
241
        if( newcfg.nonequestrian_class == 0 )
241
        if( newcfg.nonequestrian_class == 0 )
242
            printf( "WARNING: Non-equestrian class not found\n" );
242
            printf( "WARNING: Non-equestrian class not found\n" );
243
    }
243
    }
244
 
244
 
245
    if ( error == 0 )
245
    if ( error == 0 )
246
    {
246
    {
247
        config = newcfg;
247
        config = newcfg;
248
        QmConfig::write_config();
248
        config.write_config();
249
    }
249
    }
250
}
250
}
251
 
251
 
252
void QmConfTeams::cancel(void)
252
void QmConfTeams::cancel(void)
253
{
253
{