Removed string methods from the file widget

This commit is contained in:
mcmullen@netscape.com
1999-05-15 22:01:21 +00:00
parent 2889f04803
commit f8a39cb74c
2 changed files with 6 additions and 6 deletions

View File

@@ -161,9 +161,9 @@ void nsFileControlFrame::MouseClicked(nsIPresContext* aPresContext)
result = fileWidget->Show();
if (result) {
nsString fileName;
fileWidget->GetFile(fileName);
mTextFrame->SetProperty(nsHTMLAtoms::value,fileName);
nsFileSpec fileSpec;
fileWidget->GetFile(fileSpec);
mTextFrame->SetProperty(nsHTMLAtoms::value,fileSpec.GetNativePathCString());
}
NS_RELEASE(fileWidget);
}