summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2002-06-20 08:31:32 +0000
committerStephan Bergmann <sb@openoffice.org>2002-06-20 08:31:32 +0000
commit491eba5217db25100fe2161bd7cc79aeefaff841 (patch)
treefc941a40c6da6bdb481adc37ccef0014069cd0e3 /vcl/source/window
parent50a8ebf4e606f44c44e5188e02543cfb1d2f8964 (diff)
#98579# Call removeDragGestureListener in destructor.
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/window.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 0330ab46a2a6..c21d85f710ee 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: window.cxx,v $
*
- * $Revision: 1.106 $
+ * $Revision: 1.107 $
*
- * last change: $Author: ssa $ $Date: 2002-06-18 13:18:01 $
+ * last change: $Author: sb $ $Date: 2002-06-20 09:31:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -4181,6 +4181,15 @@ Window::~Window()
if( mpFrameData->mxDropTargetListener.is() )
{
OSL_TRACE( "removing drop target listener" );
+
+ Reference< XDragGestureRecognizer > xDragGestureRecognizer =
+ Reference< XDragGestureRecognizer > (mpFrameData->mxDragSource, UNO_QUERY);
+ if( xDragGestureRecognizer.is() )
+ {
+ xDragGestureRecognizer->removeDragGestureListener(
+ Reference< XDragGestureListener > (mpFrameData->mxDropTargetListener, UNO_QUERY));
+ }
+
mpFrameData->mxDropTarget->removeDropTargetListener( mpFrameData->mxDropTargetListener );
mpFrameData->mxDropTargetListener.clear();
}
@@ -8032,4 +8041,4 @@ void Window::DbgAssertNoEventListeners()
if ( !maChildEventListeners.empty() )
maChildEventListeners.Call( &aEvent );
}
-*/ \ No newline at end of file
+*/