Fix for #17694 - nsFileSpecWithUIImpl.cpp::ChooseOutputFile should preset the directory if one has been specified as a starting point. Code from vxir@concentric.net, r=sdagley

git-svn-id: svn://10.0.0.236/trunk@53318 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sdagley%netscape.com
1999-11-12 04:27:57 +00:00
parent 094b680736
commit 2bc4a9c6c1

View File

@@ -102,6 +102,10 @@ NS_IMETHODIMP nsFileSpecWithUIImpl::ChooseOutputFile(
SetFileWidgetFilterList(fileWidget, outMask, nsnull, nsnull);
nsFileSpec spec;
// If there is a filespec specified, then start there.
if (GetFileSpec(&spec) != NS_ERROR_NOT_INITIALIZED)
fileWidget->SetDisplayDirectory(spec);
nsString winTitle(windowTitle);
nsFileDlgResults result = fileWidget->PutFile(nsnull, winTitle, spec);