Unverified Commit 6127e4bf authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8575 from DonLakeFlyer/MobileFileSave

Mobile File Dialog: Fix file extension appending
parents 8e7fbefc 43765550
......@@ -44,7 +44,7 @@ QString QGCFileDialogController::filenameWithExtension(const QString& filename,
bool matchFound = false;
for (const QString& extension : rgFileExtensions) {
QString dotExtension = QString(".%1").arg(extension);
QString dotExtension = QStringLiteral(".%1").arg(extension);
matchFound = filenameWithExtension.endsWith(dotExtension);
if (matchFound) {
break;
......@@ -52,10 +52,10 @@ QString QGCFileDialogController::filenameWithExtension(const QString& filename,
}
if (!matchFound) {
filenameWithExtension += rgFileExtensions[0];
filenameWithExtension += QStringLiteral(".%1").arg(rgFileExtensions[0]);
}
return filenameWithExtension;
return filenameWithExtension;
}
bool QGCFileDialogController::fileExists(const QString& filename)
......
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