From 50e63bd8570f5e94590228e89d7372e4b9105e65 Mon Sep 17 00:00:00 2001 From: Frank Schönheit Date: Mon, 6 Aug 2001 14:37:05 +0000 Subject: #88300# UpdateUI: don't grab the focus if we didn't have it before ... --- extensions/source/propctrlr/formcontroller.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index 271a538e1c8f..60e40b838fe1 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -2,9 +2,9 @@ * * $RCSfile: formcontroller.cxx,v $ * - * $Revision: 1.38 $ + * $Revision: 1.39 $ * - * last change: $Author: fs $ $Date: 2001-08-06 14:52:59 $ + * last change: $Author: fs $ $Date: 2001-08-06 15:37:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1666,6 +1666,8 @@ namespace pcr { getPropertyBox()->DisableUpdate(); + sal_Bool bHaveFocus = getPropertyBox()->HasChildPathFocus(); + InsertEvents(); sal_uInt32 nPropCount = m_aObjectProperties.getLength(); const Property* pProps = m_aObjectProperties.getConstArray(); @@ -2161,7 +2163,9 @@ namespace pcr getPropertyBox()->SetPage( m_nDataPageId ); getPropertyBox()->EnableUpdate(); - getPropertyBox()->GrabFocus(); + + if ( bHaveFocus ) + getPropertyBox()->GrabFocus(); } catch (Exception&) { @@ -2546,6 +2550,9 @@ namespace pcr /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.38 2001/08/06 14:52:59 fs + * #87690# don't set connections on rowsets permanently - instead dispose connections which we created ourself upon switching to a new object + * * Revision 1.37 2001/07/23 13:33:33 fs * #900071# correctly call XFilePickerControlAccess::setValue * -- cgit v1.2.3