зеркало из https://github.com/mozilla/pjs.git
Removed string methods from the file widget
This commit is contained in:
Родитель
749505419a
Коммит
e8ee5c8aa3
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче