summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/guisaveas.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index 7dcc6286271c..50a554530260 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::NO_DECODE );