Select groups first.

This commit is contained in:
dfighter1985 2014-10-08 17:37:05 +02:00
parent 7504dc1238
commit 4d06c3c278

View file

@ -2400,7 +2400,19 @@ namespace NLGUI
// This may happen when alt-tab has been used => the sheet is dragged but the left button is up
if (!CCtrlDraggable::getDraggedSheet())
{
for( sint32 i = _GroupsUnderPointer.size() - 1; i >= 0; i-- )
{
CInterfaceGroup *g = _GroupsUnderPointer[ i ];
if( ( g != NULL ) && ( g->isInGroup( pNewCurrentWnd ) ) )
{
_CapturedView = g;
captured = true;
break;
}
}
if( !captured )
{
// Take the top most control.
uint nMaxDepth = 0;
const std::vector< CCtrlBase* >& _CtrlsUnderPointer = getCtrlsUnderPointer();
@ -2418,6 +2430,7 @@ namespace NLGUI
}
}
}
}
if( CInterfaceElement::getEditorMode() && !captured )
{