aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Amland <thomas.amland@gmail.com>2015-11-08 15:12:20 +0100
committerThomas Amland <thomas.amland@gmail.com>2015-11-12 21:43:29 +0100
commit437005f42fa65053c6164a4d2c9128bb2c03d832 (patch)
tree8487ce0f0790f53e07b3e7b238db8fca22730ef8
parent1127f4fdc997ea406cbb1131c6ba92eb42385467 (diff)
[addons] dont change disabled state in db directly on addon update
manager is responsible for enabling/disabling
-rw-r--r--xbmc/addons/AddonInstaller.cpp6
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();