Fix 'Finish' button not being enabled if updater fails with an error reading the update script.

UpdateObserver::updateFinished() was not being called by UpdateInstaller.
Add a call to updateFinished() in UpdateInstaller::reportError()
This commit is contained in:
Robert Knight 2011-08-30 10:47:51 +01:00
parent 6d862cbba7
commit 76f164e3c0

View file

@ -60,6 +60,7 @@ void UpdateInstaller::reportError(const std::string& error)
if (m_observer)
{
m_observer->updateError(error);
m_observer->updateFinished();
}
}
@ -84,6 +85,7 @@ void UpdateInstaller::run() throw ()
catch (const FileUtils::IOException& ex)
{
LOG(Error,"error reading process path with mode " + intToStr(m_mode));
reportError("Unable to determine path of updater");
return;
}