From d5db108364fd32fecd39b7c5094eb686b2f3958c Mon Sep 17 00:00:00 2001 From: kh1 Date: Wed, 16 Oct 2013 16:16:08 +0200 Subject: Compile fix. Change-Id: I917cb0da36b6d68df85cbc037602c4abf754ded8 Reviewed-by: Tim Jenssen --- src/libs/installer/binaryformat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3