From 1ca9580149e54d7eec4472a7852b83115f0cef5c Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 21 Jul 2011 15:04:56 +0200 Subject: [PATCH] call initPackage in the ctor --- package.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.cpp b/package.cpp index 6d4ab7a80..8a08333d8 100644 --- a/package.cpp +++ b/package.cpp @@ -120,6 +120,9 @@ Package::Package(PackageStructure *structure) : d(new PackagePrivate()) { d->structure = structure; + if (d->structure) { + d->structure.data()->initPackage(this); + } } Package::Package(const Package &other)