summaryrefslogtreecommitdiff
path: root/vcl/source/window/dockwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/dockwin.cxx')
-rw-r--r--vcl/source/window/dockwin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 2f0fc5b57d9f..84322a9df9b2 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -700,12 +700,10 @@ bool DockingWindow::PrepareToggleFloatingMode()
bool DockingWindow::Close()
{
- ImplDelData aDelData;
- ImplAddDel( &aDelData );
+ VclPtr<vcl::Window> xWindow = this;
CallEventListeners( VCLEVENT_WINDOW_CLOSE );
- if ( aDelData.IsDead() )
+ if ( xWindow->IsDisposed() )
return false;
- ImplRemoveDel( &aDelData );
if ( mpWindowImpl->mxWindowPeer.is() && IsCreatedWithToolkit() )
return false;