forked from qt-creator/qt-creator
Maemo: Serialize package contents.
Reviewed-by: kh1
This commit is contained in:
@@ -94,7 +94,13 @@ BuildStep *MaemoPackageCreationFactory::restore(BuildConfiguration *parent,
|
||||
StepType type, const QVariantMap &map)
|
||||
{
|
||||
Q_ASSERT(canRestore(parent, type, map));
|
||||
return new MaemoPackageCreationStep(parent);
|
||||
MaemoPackageCreationStep * const step
|
||||
= new MaemoPackageCreationStep(parent);
|
||||
if (!step->fromMap(map)) {
|
||||
delete step;
|
||||
return 0;
|
||||
}
|
||||
return step;
|
||||
}
|
||||
|
||||
bool MaemoPackageCreationFactory::canClone(BuildConfiguration *parent,
|
||||
|
||||
Reference in New Issue
Block a user