summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-21 00:11:33 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-21 00:10:59 +0000
commitce786b9115b5f6d158bfa62d8ccca4ddf38a9630 (patch)
treeff34e84da822d1bb92c3d3ab9b167759aa3be561
parent386748d514fe1c84e4d373b828841308580665a8 (diff)
uitest: only log actions for elements with the focus
Change-Id: Ic480f0d2c5749f3b32a873fc7695394becbebfcc Reviewed-on: https://gerrit.libreoffice.org/35495 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--vcl/source/uitest/logger.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index 2549b7dd9a44..f56cc349860b 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -50,6 +50,9 @@ void UITestLogger::logAction(VclPtr<Control>& xUIElement, VclEventId nEvent)
if (xUIElement->get_id().isEmpty())
return;
+ if (!xUIElement->HasFocus())
+ return;
+
std::unique_ptr<UIObject> pUIObject = xUIElement->GetUITestFactory()(xUIElement.get());
OUString aAction = pUIObject->get_action(nEvent);
if (!aAction.isEmpty())