|
|
@ -2476,6 +2476,8 @@ class CAHTarget : public IActionHandler
|
|
|
|
if (entity && entity->properties().selectable() && !entity->getDisplayName().empty())
|
|
|
|
if (entity && entity->properties().selectable() && !entity->getDisplayName().empty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UserEntity->selection(entity->slot());
|
|
|
|
UserEntity->selection(entity->slot());
|
|
|
|
|
|
|
|
if (ClientCfg.TargetChangeCompass)
|
|
|
|
|
|
|
|
{
|
|
|
|
CGroupCompas *gc = dynamic_cast<CGroupCompas *>(CWidgetManager::getInstance()->getElementFromId("ui:interface:compass"));
|
|
|
|
CGroupCompas *gc = dynamic_cast<CGroupCompas *>(CWidgetManager::getInstance()->getElementFromId("ui:interface:compass"));
|
|
|
|
if (gc)
|
|
|
|
if (gc)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2488,6 +2490,7 @@ class CAHTarget : public IActionHandler
|
|
|
|
CWidgetManager::getInstance()->setTopWindow(gc);
|
|
|
|
CWidgetManager::getInstance()->setTopWindow(gc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (!quiet)
|
|
|
|
else if (!quiet)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CInterfaceManager::getInstance()->displaySystemInfo(CI18N::get("uiTargetErrorCmd"));
|
|
|
|
CInterfaceManager::getInstance()->displaySystemInfo(CI18N::get("uiTargetErrorCmd"));
|
|
|
|