diff options
Diffstat (limited to 'vcl/source/control/lstbox.cxx')
-rw-r--r-- | vcl/source/control/lstbox.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx index e15d09e5add7..a435b85534ea 100644 --- a/vcl/source/control/lstbox.cxx +++ b/vcl/source/control/lstbox.cxx @@ -323,12 +323,10 @@ IMPL_LINK_NOARG_TYPED(ListBox, ImplPopupModeEndHdl, FloatingWindow*, void) bool bTravelSelect = mpImplLB->IsTravelSelect(); mpImplLB->SetTravelSelect( true ); - ImplDelData aCheckDelete; - ImplAddDel( &aCheckDelete ); + VclPtr<vcl::Window> xWindow = this; Select(); - if ( aCheckDelete.IsDead() ) + if ( xWindow->IsDisposed() ) return; - ImplRemoveDel( &aCheckDelete ); mpImplLB->SetTravelSelect( bTravelSelect ); } |