summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-12-06 15:08:33 +0000
committerMalte Timmermann <mt@openoffice.org>2001-12-06 15:08:33 +0000
commit5a9974957da862ed6b690eaa2c78b13a674c3e52 (patch)
tree0f1d9f00df70134a45a6c8c3d653f11a7b844cf3
parent53dcfa2287469f8fe877c3f633d00033c6bf6b0c (diff)
#95662# BASEPROPERTY_ENABLE: Don't enable with children
-rw-r--r--toolkit/source/awt/vclxwindow.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 502af4ac362b..91e412b14756 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: vclxwindow.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: mt $ $Date: 2001-11-29 19:34:16 $
+ * last change: $Author: mt $ $Date: 2001-12-06 16:08:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -871,7 +871,11 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::
{
sal_Bool b;
if ( Value >>= b )
- pWindow->Enable( b );
+ {
+ pWindow->Enable( b, FALSE ); // without children!
+ if ( ( eWinType == WINDOW_DIALOG ) || ( eWinType == WINDOW_MODALDIALOG ) || ( eWinType == WINDOW_MODELESSDIALOG ) )
+ pWindow->EnableInput( b );
+ }
}
break;
case BASEPROPERTY_TEXT: