Remove .hidden extension when user imports a Snapmatic what was hidden

This commit is contained in:
Rafael 2016-10-27 07:21:51 +02:00
parent 40012b1b46
commit 3841ffaac6

View file

@ -502,10 +502,10 @@ bool ProfileInterface::importSnapmaticPicture(SnapmaticPicture *picture, QString
if (warn) QMessageBox::warning(this, tr("Import"), tr("Failed to import the Snapmatic picture, the picture is already in the game")); if (warn) QMessageBox::warning(this, tr("Import"), tr("Failed to import the Snapmatic picture, the picture is already in the game"));
return false; return false;
} }
else if (QFile::copy(picPath, profileFolder + QDir::separator() + picFileName)) else if (QFile::copy(picPath, profileFolder + QDir::separator() + adjustedFileName))
{ {
picture->setPicFileName(profileFolder + QDir::separator() + picFileName); picture->setPicFileName(profileFolder + QDir::separator() + adjustedFileName);
pictureLoaded_f(picture, profileFolder + QDir::separator() + picFileName, true); pictureLoaded_f(picture, profileFolder + QDir::separator() + adjustedFileName, true);
return true; return true;
} }
else else