From 8f6c68dc6facd4302dc038b2a3bfa260a466af17 Mon Sep 17 00:00:00 2001 From: Frank Schönheit Date: Tue, 10 Dec 2002 16:51:04 +0000 Subject: #106126# don't initialize the file picker with non-file URLs --- extensions/source/propctrlr/formcontroller.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index 202d621cb64a..05fe59a6ed41 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -2,9 +2,9 @@ * * $RCSfile: formcontroller.cxx,v $ * - * $Revision: 1.52 $ + * $Revision: 1.53 $ * - * last change: $Author: fs $ $Date: 2002-12-02 13:16:38 $ + * last change: $Author: fs $ $Date: 2002-12-10 17:51:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2416,7 +2416,13 @@ namespace pcr if (PROPERTY_ID_TARGET_URL == nPropId) { ::sfx2::FileDialogHelper aFileDlg(WB_3DLOOK); - aFileDlg.SetDisplayDirectory(aVal); + + INetURLObject aParser( aVal ); + if ( INET_PROT_FILE == aParser.GetProtocol() ) + // set the initial directory only for file-URLs. Everything else + // is considered to be potentially expensive + // 106126 - 2002/12/10 - fs@openoffice.org + aFileDlg.SetDisplayDirectory( aVal ); if (0 == aFileDlg.Execute()) { @@ -2741,6 +2747,9 @@ namespace pcr /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.52 2002/12/02 13:16:38 fs + * #105726# properly EnableEmptyFieldValue (broken in 1.44) + * * Revision 1.51 2002/10/25 12:49:51 fs * #104512# fixed some controls leaking * -- cgit v1.2.3