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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user