diff options
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 8 |
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() |