Merge pull request #11570 from jherico/overlays_blocking

Remove unnecessary blocking call
This commit is contained in:
Sam Gateau 2017-10-11 15:40:53 -07:00 committed by GitHub
commit 38b467a6bf

View file

@ -741,13 +741,6 @@ void Overlays::sendHoverLeaveOverlay(const OverlayID& id, const PointerEvent& ev
}
OverlayID Overlays::getKeyboardFocusOverlay() {
if (QThread::currentThread() != thread()) {
OverlayID result;
PROFILE_RANGE(script, __FUNCTION__);
BLOCKING_INVOKE_METHOD(this, "getKeyboardFocusOverlay", Q_RETURN_ARG(OverlayID, result));
return result;
}
return qApp->getKeyboardFocusOverlay();
}