Commit a6d11035 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Show debug output when it's necessary

parent bd96fddc
Pipeline #73271 passed with stage
in 39 minutes and 10 seconds
...@@ -70,7 +70,9 @@ static QTextCodec *selectCharset(const QStringList &charsets, const QString &tex ...@@ -70,7 +70,9 @@ static QTextCodec *selectCharset(const QStringList &charsets, const QString &tex
return codec; return codec;
} }
} }
qCDebug(TEMPLATEPARSER_LOG) << "No appropriate charset found."; if (!charsets.isEmpty()) {
qCDebug(TEMPLATEPARSER_LOG) << "No appropriate charset found.";
}
return KCharsets::charsets()->codecForName(QStringLiteral("utf-8")); return KCharsets::charsets()->codecForName(QStringLiteral("utf-8"));
} }
} }
......
Supports Markdown
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