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

Use QLatin1Char

parent 7716afc6
......@@ -204,7 +204,7 @@ bool Util::saveContents(QWidget *parent, const KMime::Content::List &contents, Q
file = origFile;
int num = renameNumbering[file] + 1;
int dotIdx = file.lastIndexOf(QLatin1Char('.'));
file = file.insert((dotIdx >= 0) ? dotIdx : file.length(), QStringLiteral("_") + QString::number(num));
file = file.insert((dotIdx >= 0) ? dotIdx : file.length(), QLatin1Char('_') + QString::number(num));
}
curUrl = curUrl.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash);
curUrl.setPath(curUrl.path() + QLatin1Char('/') + file);
......
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