Skip to content

Commit

Permalink
changed: No need to pass addon deletion into CGUIWindowAddonBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall committed Jan 25, 2011
1 parent 035b794 commit a3d9691
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xbmc/addons/GUIDialogAddonInfo.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit a3d9691

Please sign in to comment.