diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/guisaveas.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index e51b987ff49d..abce2e3f4cb9 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -1201,6 +1201,10 @@ OUString ModelData_Impl::GetRecommendedDir( const OUString& aSuggestedDir ) aLocation = INetURLObject( SvtPathOptions().GetWorkPath() ); } + // Suggest somewhere other than the system's temp directory + if( aLocation.GetMainURL( INetURLObject::DecodeMechanism::NONE ).startsWith( SvtPathOptions().GetTempPath() ) ) + aLocation = INetURLObject( SvtPathOptions().GetWorkPath() ); + aLocation.setFinalSlash(); if ( !aLocation.HasError() ) aRecommendedDir = aLocation.GetMainURL( INetURLObject::DecodeMechanism::NONE ); |