From 067f272da3701b6bf203e019fff4d1204e82e264 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 6 Jun 2013 20:19:38 +0200 Subject: - bugfix: archive file wasn't closed after installation - bugfix: batch installer was treated as handler for "manual" installations - bugfix: dropped include of unused sip interface --- src/installationmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/installationmanager.cpp') diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 75ab11a3..744b928d 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -673,6 +673,10 @@ bool InstallationManager::install(const QString &fileName, GuessedValue bool archiveOpen = m_CurrentArchive->open(ToWString(QDir::toNativeSeparators(fileName)).c_str(), new MethodCallback(this, &InstallationManager::queryPassword)); + ON_BLOCK_EXIT([this] { + this->m_CurrentArchive->close(); + }); + DirectoryTree *filesTree = archiveOpen ? createFilesTree() : NULL; IPluginInstaller::EInstallResult installResult = IPluginInstaller::RESULT_NOTATTEMPTED; -- cgit v1.3.1