summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/binaryformatenginehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/binaryformatenginehandler.cpp')
-rw-r--r--src/libs/installer/binaryformatenginehandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/installer/binaryformatenginehandler.cpp b/src/libs/installer/binaryformatenginehandler.cpp
index d872ed229..1364ff431 100644
--- a/src/libs/installer/binaryformatenginehandler.cpp
+++ b/src/libs/installer/binaryformatenginehandler.cpp
@@ -122,3 +122,10 @@ void BinaryFormatEngineHandler::registerArchive(const QString &pathName, const Q
c.appendArchive(newArchive);
d->index.insertComponent(c);
}
+
+void BinaryFormatEngineHandler::resetRegisteredArchives()
+{
+ QVector<QInstallerCreator::Component> registeredComponents = d->index.components();
+ foreach (const QInstallerCreator::Component &component, registeredComponents)
+ d->index.removeComponent(component.name());
+}