aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-08-25 10:48:29 +0200
committerKahrl <kahrl@gmx.net>2013-09-05 00:45:00 +0200
commite8b94679057cad2857f53138ef52cfdce97970d6 (patch)
tree83569c75512b0ed3c2334578760b23ff26d72492
parent7860097eda449f0bb99971a037967bd338441133 (diff)
downloadminetest-e8b94679057cad2857f53138ef52cfdce97970d6.tar.gz
minetest-e8b94679057cad2857f53138ef52cfdce97970d6.tar.bz2
minetest-e8b94679057cad2857f53138ef52cfdce97970d6.zip
Fix crash on lua exception
-rw-r--r--src/guiFormSpecMenu.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index b162e8e99..bc33143a4 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -124,11 +124,14 @@ void GUIFormSpecMenu::removeChildren()
if(e != NULL)
e->remove();
}*/
+
if(m_tooltip_element)
{
m_tooltip_element->remove();
+ m_tooltip_element->drop();
m_tooltip_element = NULL;
}
+
}
void GUIFormSpecMenu::setInitialFocus()
@@ -1606,6 +1609,8 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
m_tooltip_element->setOverrideColor(video::SColor(255,255,255,255));
m_tooltip_element->setTextAlignment(gui::EGUIA_CENTER, gui::EGUIA_CENTER);
m_tooltip_element->setWordWrap(false);
+ //we're not parent so no autograb for this one!
+ m_tooltip_element->grab();
}
//set initial focus if parser didn't set it