Commit a2643834 authored by Laurent Montel's avatar Laurent Montel 😁

Add warning when we can open file

parent 47acb537
......@@ -208,6 +208,7 @@ KDebugSettingsUtil::LineLoggingQtCategory KDebugSettingsUtil::parseLineLoggingQt
QList<KDebugSettingsUtil::LoadLoggingCategory> KDebugSettingsUtil::readLoggingQtCategories(const QString &filename)
{
if (filename.isEmpty()) {
qCWarning(KDEBUGSETTINGS_LOG) << "Empty file name";
return {};
}
//Code based on src/corelib/io/qloggingregistry.cpp
......@@ -297,6 +298,9 @@ QList<KDebugSettingsUtil::LoadLoggingCategory> KDebugSettingsUtil::readLoggingQt
}
}
}
} else {
qCWarning(KDEBUGSETTINGS_LOG) << "Impossible to open file: " << filename;
}
return hashLoadLoggingCategories.values();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment