aboutsummaryrefslogtreecommitdiff
path: root/src/documentstyle.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-01-05 17:17:46 +0100
committerFelix Queißner <felix@ib-queissner.de>2021-01-05 17:51:15 +0100
commit522184bf155d22728d1a829e5f30847ae3e7aeb7 (patch)
tree4bf517831457ecb2ed565b02de03d9eac31921da /src/documentstyle.cpp
parent9d446718e2f9a74f9363ae919ea2ec406bd38aba (diff)
downloadkristall-522184bf155d22728d1a829e5f30847ae3e7aeb7.tar.gz
DocumentStyle: escape special chars when saving the style
Before the change, the function printed "QString::arg: Argument missing" to stderr when it saw special characters and omitted them from the file name.
Diffstat (limited to 'src/documentstyle.cpp')
-rw-r--r--src/documentstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/documentstyle.cpp b/src/documentstyle.cpp
index 5e4f727..31795d6 100644
--- a/src/documentstyle.cpp
+++ b/src/documentstyle.cpp
@@ -196,7 +196,7 @@ QString DocumentStyle::createFileNameFromName(const QString &src, int index)
result.append('-');
}
else {
- result.append(QString("").arg(c.unicode()));
+ result.append(QString::number(c.unicode()));
}
}