summaryrefslogtreecommitdiff
path: root/vcl/source/control/ilstbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/ilstbox.cxx')
-rw-r--r--vcl/source/control/ilstbox.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 131f598a2314..a5ef9a949e3c 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -2241,6 +2241,9 @@ void ImplListBox::SetNoSelection()
void ImplListBox::GetFocus()
{
+ if (!maLBWindow || maLBWindow->IsDisposed())
+ return;
+
maLBWindow->GrabFocus();
}