mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Use qDebug instead of qCritical the message is not an error
The user may have not created seasons or workout filters yet.
This commit is contained in:
@@ -179,7 +179,7 @@ SeasonParser::readSeasons
|
|||||||
{
|
{
|
||||||
QList<Season> seasons;
|
QList<Season> seasons;
|
||||||
if (! file->open(QFile::ReadOnly | QFile::Text)) {
|
if (! file->open(QFile::ReadOnly | QFile::Text)) {
|
||||||
qCritical() << "Cannot read file" << file->fileName() << "-" << file->errorString();
|
qDebug() << "Cannot read file" << file->fileName() << "-" << file->errorString();
|
||||||
return seasons;
|
return seasons;
|
||||||
}
|
}
|
||||||
QXmlStreamReader reader(file);
|
QXmlStreamReader reader(file);
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ WorkoutFilterStore::load
|
|||||||
workoutFilters.clear();
|
workoutFilters.clear();
|
||||||
QFile file(fileName);
|
QFile file(fileName);
|
||||||
if (! file.open(QFile::ReadOnly | QFile::Text)) {
|
if (! file.open(QFile::ReadOnly | QFile::Text)) {
|
||||||
qCritical() << "Cannot open file" << fileName << "for reading -" << file.errorString();
|
qDebug() << "Cannot open file" << fileName << "for reading -" << file.errorString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QXmlStreamReader reader(&file);
|
QXmlStreamReader reader(&file);
|
||||||
|
|||||||
Reference in New Issue
Block a user