added openFile function

This commit is contained in:
Rafael 2016-04-14 04:18:22 +02:00
parent c4b42beae4
commit 61ff2d7026
5 changed files with 162 additions and 17 deletions

View file

@ -415,7 +415,7 @@ bool ProfileInterface::importFile(QString selectedFile, bool warn)
SnapmaticPicture *picture = new SnapmaticPicture(selectedFile);
if (picture->readingPicture())
{
bool success = importSnapmaticPicture(picture, selectedFile, warn);;
bool success = importSnapmaticPicture(picture, selectedFile, warn);
if (!success) delete picture;
return success;
}
@ -450,7 +450,7 @@ bool ProfileInterface::importFile(QString selectedFile, bool warn)
SavegameData *savegame = new SavegameData(selectedFile);
if (picture->readingPicture())
{
bool success = importSnapmaticPicture(picture, selectedFile, warn);;
bool success = importSnapmaticPicture(picture, selectedFile, warn);
delete savegame;
if (!success) delete picture;
return success;