summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/formcontroller.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-12-10 16:51:04 +0000
committerFrank Schönheit <fs@openoffice.org>2002-12-10 16:51:04 +0000
commit4d3a23734b66a1d36ff1092fddb9a361aaaf3806 (patch)
treed7220bcf1ffce486fd46a9b3cf3018cf4149f9c3 /extensions/source/propctrlr/formcontroller.cxx
parent0d8d668601afe4b4806a49f5d6a13dd3706e3318 (diff)
#106126# don't initialize the file picker with non-file URLs
Diffstat (limited to 'extensions/source/propctrlr/formcontroller.cxx')
-rw-r--r--extensions/source/propctrlr/formcontroller.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx
index 9a0c001da..c993ed044 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
*