Skip to content

Commit e8b9467

Browse files
sapierkahrl
sapier
authored andcommittedSep 4, 2013
Fix crash on lua exception
1 parent 7860097 commit e8b9467

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/guiFormSpecMenu.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,14 @@ void GUIFormSpecMenu::removeChildren()
124124
if(e != NULL)
125125
e->remove();
126126
}*/
127+
127128
if(m_tooltip_element)
128129
{
129130
m_tooltip_element->remove();
131+
m_tooltip_element->drop();
130132
m_tooltip_element = NULL;
131133
}
134+
132135
}
133136

134137
void GUIFormSpecMenu::setInitialFocus()
@@ -1606,6 +1609,8 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
16061609
m_tooltip_element->setOverrideColor(video::SColor(255,255,255,255));
16071610
m_tooltip_element->setTextAlignment(gui::EGUIA_CENTER, gui::EGUIA_CENTER);
16081611
m_tooltip_element->setWordWrap(false);
1612+
//we're not parent so no autograb for this one!
1613+
m_tooltip_element->grab();
16091614
}
16101615

16111616
//set initial focus if parser didn't set it

0 commit comments

Comments
 (0)
Please sign in to comment.