Bugfix: clicking on 'back' in a new addon installation case
crashed stk. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8609 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
859a77df0d
commit
6ac6e76f12
@ -118,8 +118,11 @@ GUIEngine::EventPropagation
|
|||||||
{
|
{
|
||||||
// Cancel a download only if we are installing/upgrading one
|
// Cancel a download only if we are installing/upgrading one
|
||||||
// (and not uninstalling an installed one):
|
// (and not uninstalling an installed one):
|
||||||
if(!m_addon.isInstalled() || m_addon.needsUpdate())
|
if(m_download_request)
|
||||||
network_http->cancelDownload();
|
{
|
||||||
|
assert(m_download_request);
|
||||||
|
m_download_request->cancel();
|
||||||
|
}
|
||||||
dismiss();
|
dismiss();
|
||||||
return GUIEngine::EVENT_BLOCK;
|
return GUIEngine::EVENT_BLOCK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user