Little optimization

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-03-29 01:08:07 +03:00
parent bb98eeb54b
commit 55a2da02cc

View File

@ -701,7 +701,7 @@ void DialogPatternProperties::SaveImage()
byteArray.append(doc->GetImage().toUtf8()); byteArray.append(doc->GetImage().toUtf8());
QByteArray ba = QByteArray::fromBase64(byteArray); QByteArray ba = QByteArray::fromBase64(byteArray);
const QString extension = "." + doc->GetImageExtension(); const QString extension = "." + doc->GetImageExtension();
QString filter = tr("Images") + " (*" + extension + ")"; QString filter = tr("Images") + QLatin1String(" (*") + extension + QLatin1String(")");
QString filename = QFileDialog::getSaveFileName(this, tr("Save File"), tr("untitled"), filter, &filter); QString filename = QFileDialog::getSaveFileName(this, tr("Save File"), tr("untitled"), filter, &filter);
if (not filename.isEmpty()) if (not filename.isEmpty())
{ {