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:
Alejandro Martinez
2025-08-30 10:05:02 -03:00
parent cdcd47e4c1
commit 22fe08fde3
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ SeasonParser::readSeasons
{
QList<Season> seasons;
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;
}
QXmlStreamReader reader(file);

View File

@@ -109,7 +109,7 @@ WorkoutFilterStore::load
workoutFilters.clear();
QFile file(fileName);
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;
}
QXmlStreamReader reader(&file);