Fixed memory leak (and incorrect behaviour of STK) when ESC
is pressed instead of 'cancel' to stop downloading an addon. Before this the download would actually finish. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10098 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -168,6 +168,13 @@ void AddonsLoading::init()
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
void AddonsLoading::escapePressed()
|
||||
{
|
||||
processEvent("cancel");
|
||||
ModalDialog::dismiss();
|
||||
} // escapePressed
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
GUIEngine::EventPropagation
|
||||
|
||||
@@ -32,7 +32,7 @@ class Request;
|
||||
*/
|
||||
class AddonsLoading : public GUIEngine::ModalDialog
|
||||
{
|
||||
//virtual void escapePressed() {};
|
||||
virtual void escapePressed();
|
||||
private:
|
||||
GUIEngine::LabelWidget *m_state;
|
||||
GUIEngine::ProgressBarWidget *m_progress;
|
||||
|
||||
Reference in New Issue
Block a user