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:
parent
d0f4c8917a
commit
3198d8a6b7
@ -116,7 +116,10 @@ GUIEngine::EventPropagation
|
|||||||
{
|
{
|
||||||
if(event_source == "cancel")
|
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();
|
dismiss();
|
||||||
return GUIEngine::EVENT_BLOCK;
|
return GUIEngine::EVENT_BLOCK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user