summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-28 18:30:57 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:01:40 +0200
commitd85d19d05dc9f16b576da28c9665515cdcfcb9ce (patch)
treeb6ab4980703be44fa8060e00cc9ae1851a3983cc /vcl/source
parent9dd436c412372cb2120d3b657de7c4a5c2f6ed89 (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
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/uitest/uiobject.cxx3
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;