Fix a segfault problem with addons (the buttons are now loaded from a file, and the code still used some button pointer to desactivated them, but they was NULL)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
8af8d1ab69
commit
53037c25e1
@ -3,7 +3,7 @@
|
||||
<div x="2%" y="10%" width="96%" height="80%" layout="horizontal-row" >
|
||||
<div width="50%" height="100%" layout="vertical-row" >
|
||||
<icon id="icon" align="center" proportion="8" width="100%" icon="gui/logo.png"/>
|
||||
<button id="cancel" I18N="Addons" text="Back" align="center"/>
|
||||
<button id="back" I18N="Addons" text="Back" align="center"/>
|
||||
</div>
|
||||
<div width="50%" height="100%" layout="vertical-row" >
|
||||
<label id="name" width="100%" text="Name:" proportion="1" />
|
||||
|
@ -116,10 +116,13 @@ GUIEngine::EventPropagation AddonsLoading::processEvent(const std::string& event
|
||||
m_widgets.push_back(m_state);
|
||||
m_state->add();
|
||||
|
||||
m_back_button->setDeactivated();
|
||||
this->getWidget<ButtonWidget>("back")->setDeactivated();
|
||||
//FIXME : re-implement this buttons
|
||||
/*
|
||||
m_next->setDeactivated();
|
||||
m_previous->setDeactivated();
|
||||
this->install_button->setDeactivated();
|
||||
*/
|
||||
this->getWidget<ButtonWidget>("install")->setDeactivated();
|
||||
m_percent_update = true;
|
||||
pthread_t thread;
|
||||
pthread_create(&thread, NULL, &AddonsLoading::startInstall, this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user