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:
Mark Liversedge
2011-07-29 22:17:05 +01:00
parent 998c4cd6e9
commit 4972f2472e
2 changed files with 2 additions and 7 deletions

View File

@@ -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"));

View File

@@ -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"));