Commit 8443d2d1 authored by cutealien's avatar cutealien

Avoid crash we got now due to recent change in messagehandling.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4302 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 4b6531eb
......@@ -383,6 +383,8 @@ Function hasModalDialog() checks if we currently have a modal dialog open.
*/
bool hasModalDialog()
{
if ( !Device )
return false;
IGUIEnvironment* env = Device->getGUIEnvironment();
IGUIElement * focused = env->getFocus();
while ( focused )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment