changed: No need to pass addon deletion into CGUIWindowAddonBrowser
authorJonathan Marshall <jmarshall@never.you.mind>
Sun, 23 Jan 2011 01:39:59 +0000 (14:39 +1300)
committertheuni <theuni-nospam-@xbmc.org>
Wed, 26 Jan 2011 08:55:26 +0000 (03:55 -0500)
(cherry picked from commit bb70e85b00bc12b831960a61ffe66236b91e470d)

xbmc/GUIDialogAddonInfo.cpp

index 746d9fd..53b4c19 100644 (file)
@@ -164,11 +164,10 @@ void CGUIDialogAddonInfo::OnUninstall()
   database.Open();
   database.DisableAddon(m_localAddon->ID(), false);
 
-  CGUIWindowAddonBrowser* window = (CGUIWindowAddonBrowser*)g_windowManager.GetWindow(WINDOW_ADDON_BROWSER);
   CFileItemList list;
   list.Add(CFileItemPtr(new CFileItem(m_localAddon->Path(),true)));
   list[0]->Select(true);
-  CJobManager::GetInstance().AddJob(new CFileOperationJob(CFileOperationJob::ActionDelete,list,""),window);
+  CJobManager::GetInstance().AddJob(new CFileOperationJob(CFileOperationJob::ActionDelete,list,""),NULL);
   CAddonMgr::Get().RemoveAddon(m_localAddon->ID());
   Close();
 }