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

USe truncate directly

parent 257220fa
......@@ -212,7 +212,7 @@ void ArchiveFolderDialog::slotFixFileExtension()
QMimeDatabase db;
const QString extension = db.suffixForFileName(fileName);
if (!extension.isEmpty()) {
fileName = fileName.left(fileName.length() - extension.length() - 1);
fileName.truncate(fileName.length() - extension.length() - 1);
}
// Now, we've got a filename without an extension, simply append the correct one
......
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