summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-11 21:15:13 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-11 21:17:23 +0100
commitd425cc7c73a8ad3d693216742d75b0f7f1bf5f89 (patch)
tree446170bca1ef137f7001e531f9e3f0e847303930
parent0c3b96790da88fb22b5e932f9a4abaeb330b610a (diff)
tdf#90990 - listbox focus issue post dispose.
Change-Id: I091662fed0ebe121d023a1bed1eda79e6eb5a09e
-rw-r--r--vcl/source/control/ilstbox.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index a5ef9a949e3c..f1b9c23e4476 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -2241,10 +2241,10 @@ void ImplListBox::SetNoSelection()
void ImplListBox::GetFocus()
{
- if (!maLBWindow || maLBWindow->IsDisposed())
- return;
-
- maLBWindow->GrabFocus();
+ if (maLBWindow)
+ maLBWindow->GrabFocus();
+ else
+ Control::GetFocus();
}
vcl::Window* ImplListBox::GetPreferredKeyInputWindow()