Bugfix: don't cancel a download if the user actually only clicked

on 'back' in the uninstall page.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8584 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-05-15 12:54:12 +00:00
parent d0f4c8917a
commit 3198d8a6b7

View File

@ -116,7 +116,10 @@ GUIEngine::EventPropagation
{
if(event_source == "cancel")
{
network_http->cancelDownload();
// Cancel a download only if we are installing/upgrading one
// (and not uninstalling an installed one):
if(!m_addon.isInstalled() || m_addon.needsUpdate())
network_http->cancelDownload();
dismiss();
return GUIEngine::EVENT_BLOCK;
}