fix possible mapview crash

This commit is contained in:
Eduardo Bart
2012-03-28 16:09:45 -03:00
parent 4743763d48
commit a4cef0d390
6 changed files with 87 additions and 55 deletions

View File

@@ -73,3 +73,6 @@ function UIMiniWindow:onMinimize()
end
end
function UIMiniWindow:getClassName()
return 'UIMiniWindow'
end

View File

@@ -8,8 +8,10 @@ function UIMiniWindowContainer.create()
end
function UIMiniWindowContainer:onDrop(widget, mousePos)
widget:setParent(self)
return true
if widget:getClassName() == 'UIMiniWindow' then
widget:setParent(self)
return true
end
end
function UIMiniWindowContainer:getClassName()