diff options
author | Thomas Amland <thomas.amland@gmail.com> | 2015-11-08 15:12:20 +0100 |
---|---|---|
committer | Thomas Amland <thomas.amland@gmail.com> | 2015-11-12 21:43:29 +0100 |
commit | 437005f42fa65053c6164a4d2c9128bb2c03d832 (patch) | |
tree | 8487ce0f0790f53e07b3e7b238db8fca22730ef8 | |
parent | 1127f4fdc997ea406cbb1131c6ba92eb42385467 (diff) |
[addons] dont change disabled state in db directly on addon update
manager is responsible for enabling/disabling
-rw-r--r-- | xbmc/addons/AddonInstaller.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xbmc/addons/AddonInstaller.cpp b/xbmc/addons/AddonInstaller.cpp index 22bc8fd76e..c289febc73 100644 --- a/xbmc/addons/AddonInstaller.cpp +++ b/xbmc/addons/AddonInstaller.cpp @@ -625,10 +625,8 @@ bool CAddonInstallJob::DoWork() ADDON::OnPostInstall(m_addon, m_update, IsModal()); - //Clear addon from the disabled table - CAddonDatabase database; - database.Open(); - database.DisableAddon(m_addon->ID(), false); + //Enable it if it was previously disabled + CAddonMgr::GetInstance().EnableAddon(m_addon->ID()); // and we're done! MarkFinished(); |