From 3841ffaac643e59c5d27953adba3e1c601a99b8a Mon Sep 17 00:00:00 2001 From: Rafael Date: Thu, 27 Oct 2016 07:21:51 +0200 Subject: [PATCH] Remove .hidden extension when user imports a Snapmatic what was hidden --- ProfileInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp index ce777b4..1a90161 100755 --- a/ProfileInterface.cpp +++ b/ProfileInterface.cpp @@ -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")); 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); - pictureLoaded_f(picture, profileFolder + QDir::separator() + picFileName, true); + picture->setPicFileName(profileFolder + QDir::separator() + adjustedFileName); + pictureLoaded_f(picture, profileFolder + QDir::separator() + adjustedFileName, true); return true; } else