diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-28 18:30:57 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:01:40 +0200 |
commit | d85d19d05dc9f16b576da28c9665515cdcfcb9ce (patch) | |
tree | b6ab4980703be44fa8060e00cc9ae1851a3983cc | |
parent | 9dd436c412372cb2120d3b657de7c4a5c2f6ed89 (diff) |
uitest: don't allow access to disabled or hidden listbox
This should maybe be extended to other parts of the framework.
Change-Id: I03137bc34a1e4b8e6ba4024f66d1dfde122bb9d2
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index b266b7d004c1..d401ccbad5e5 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -464,6 +464,9 @@ ListBoxUIObject::ListBoxUIObject(VclPtr<ListBox> xListBox): void ListBoxUIObject::execute(const OUString& rAction, const StringMap& rParameters) { + if (!mxListBox->IsEnabled() || !mxListBox->IsReallyVisible()) + return; + if (rAction == "SELECT") { bool bSelect = true; |