mark warnings as such in import wizard

This commit is contained in:
Sean Rhea
2010-01-17 20:40:32 -08:00
parent f2ae215d4b
commit 29487ed774

View File

@@ -274,10 +274,13 @@ RideImportWizard::process()
boost::scoped_ptr<RideFile> ride(RideFileFactory::instance().openRideFile(thisfile, errors));
// did it parse ok?
if (ride && errors.empty()) {
if (ride) {
// ITS A KEEPER, LETS GET SOME METADATA ON DISPLAY
tableWidget->item(i,5)->setText(tr("Validated"));
// ride != NULL but !errors.isEmpty() means they're just warnings
if (errors.isEmpty())
tableWidget->item(i,5)->setText(tr("Validated"));
else
tableWidget->item(i,5)->setText(tr("Warning - ") + errors.join(tr(" ")));
// Set Date and Time
if (ride->startTime().isNull()) {