mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Remove console error for seasons.xml
There is no need to warn about seasons.xml missing, it is quite acceptable to have none set. Worse still sending to the console log is next to useless for users that don't launch from the command line.
This commit is contained in:
@@ -291,10 +291,7 @@ void CriticalPowerWindow::addSeasons()
|
||||
SeasonParser( handler );
|
||||
xmlReader.setContentHandler(&handler);
|
||||
xmlReader.setErrorHandler(&handler);
|
||||
bool ok = xmlReader.parse( source );
|
||||
if(!ok)
|
||||
qWarning("Failed to parse seasons.xml");
|
||||
|
||||
xmlReader.parse( source );
|
||||
seasons = handler.getSeasons();
|
||||
Season season;
|
||||
season.setName(tr("All Seasons"));
|
||||
|
||||
@@ -203,9 +203,7 @@ void HistogramWindow::addSeasons()
|
||||
SeasonParser( handler );
|
||||
xmlReader.setContentHandler(&handler);
|
||||
xmlReader.setErrorHandler(&handler);
|
||||
bool ok = xmlReader.parse( source );
|
||||
if(!ok) qWarning("Failed to parse seasons.xml");
|
||||
|
||||
xmlReader.parse( source );
|
||||
seasons = handler.getSeasons();
|
||||
Season season;
|
||||
season.setName(tr("All Seasons"));
|
||||
|
||||
Reference in New Issue
Block a user