added openFile function
This commit is contained in:
parent
c4b42beae4
commit
61ff2d7026
5 changed files with 162 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue