diff options
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 5c9d7c431437..b399091bd201 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3391,7 +3391,7 @@ void Window::ImplCallDeactivateListeners( vcl::Window *pNew ) { VclPtr<vcl::Window> xWindow(this); CallEventListeners( VclEventId::WindowDeactivate, pNew ); - if( xWindow->isDisposed() ) + if( !xWindow->mpWindowImpl ) return; // #100759#, avoid walking the wrong frame's hierarchy @@ -3409,7 +3409,7 @@ void Window::ImplCallActivateListeners( vcl::Window *pOld ) VclPtr<vcl::Window> xWindow(this); CallEventListeners( VclEventId::WindowActivate, pOld ); - if( xWindow->isDisposed() ) + if( !xWindow->mpWindowImpl ) return; if ( ImplGetParent() ) |