fix(cpn): compilation breakage due to #7438 (#7544)

This commit is contained in:
philmoz
2026-07-11 20:17:04 +10:00
committed by GitHub
parent a0fcc8e069
commit 2eb090f66e
7 changed files with 17 additions and 16 deletions
+6 -3
View File
@@ -62,9 +62,12 @@ QString formatTitle(const QString & name)
void debugHtml(const QString & html)
{
QFile file("foo.html");
file.open(QIODevice::Truncate | QIODevice::WriteOnly);
file.write(html.toUtf8());
file.close();
if (file.open(QIODevice::Truncate | QIODevice::WriteOnly)) {
file.write(html.toUtf8());
file.close();
} else {
// TODO: error handling
}
}
QString addFont(const QString & input, const QString & color, const QString & size, const QString & face)