summaryrefslogtreecommitdiffstats
path: root/installerbuilder/common/binaryformat.cpp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-06-24 14:35:27 +0200
committerkh1 <qt-info@nokia.com>2011-06-24 14:35:27 +0200
commit242973f1d5717c818e795ae9f48568b538fe2b44 (patch)
tree18456bfe48258b1000d47d9e8957e5e621b021b2 /installerbuilder/common/binaryformat.cpp
parentdbd06849c9895afe639ea55c96e89b20b2b4d66f (diff)
In case we are the installer do not close the file.
This is only the case for offline installer, as all resources are attached to the binary. Once we close the file, we are unable to read any resource like archives, operations etc... This fixes the crash seen by Maurice using the offline installer.
Diffstat (limited to 'installerbuilder/common/binaryformat.cpp')
-rw-r--r--installerbuilder/common/binaryformat.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/installerbuilder/common/binaryformat.cpp b/installerbuilder/common/binaryformat.cpp
index 72ab9db48..feb8cec42 100644
--- a/installerbuilder/common/binaryformat.cpp
+++ b/installerbuilder/common/binaryformat.cpp
@@ -1031,7 +1031,6 @@ int BinaryContent::registerEmbeddedQResources()
foreach (const Range<qint64> &i, metadataResourceSegments)
mappings.append(addResourceFromBinary(data, i, hasBinaryDataFile));
- file.clear();
if (hasBinaryDataFile)
m_binaryFile.clear();