Maemo: Serialize package contents.

Reviewed-by: kh1
This commit is contained in:
ck
2010-05-03 15:50:15 +02:00
parent 7140288c40
commit 54560de48f
5 changed files with 62 additions and 4 deletions

View File

@@ -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,