summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-10-16 16:16:08 +0200
committerTim Jenssen <tim.jenssen@digia.com>2013-10-16 16:32:14 +0200
commitd5db108364fd32fecd39b7c5094eb686b2f3958c (patch)
tree3410b7578cb94e82abcbe7b6427ed4a174083c21 /src/libs
parent0f4ceb1950c18d7de27265504e104a65f2be7628 (diff)
Compile fix.
Change-Id: I917cb0da36b6d68df85cbc037602c4abf754ded8 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/installer/binaryformat.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/installer/binaryformat.cpp b/src/libs/installer/binaryformat.cpp
index 081555a59..df2366946 100644
--- a/src/libs/installer/binaryformat.cpp
+++ b/src/libs/installer/binaryformat.cpp
@@ -1146,8 +1146,10 @@ void BinaryContent::registerAsDefaultQResource(const QString &path)
QFile resource(path);
bool success = resource.open(QIODevice::ReadOnly);
if (success && (d->m_resourceMappings.count() > 0)) {
- success = QResource::unregisterResource((const uchar*)d->m_resourceMappings.takeFirst().constData(),
+ success = QResource::unregisterResource((const uchar*)d->m_resourceMappings.first().constData(),
QLatin1String(":/metadata"));
+ if (success)
+ d->m_resourceMappings.remove(0);
}
if (success) {