Fix to properly call new wrapper for GetFile dialog.

This commit is contained in:
sdagley%netscape.com 1999-04-08 02:59:30 +00:00
Родитель a298d7b5cd
Коммит f197fdaa60
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -887,10 +887,11 @@ nsBrowserAppCore::OpenWindow()
printf("If I could open a new window with [%s] I would.\n", (const char *)nsAutoCString(fileURL));
#else // New Way
nsFileSpec fileSpec;
fileWidget->GetFile(fileSpec);
if (fileWidget->GetFile(nsnull, title, fileSpec) == nsFileDlgResults_OK) {
nsFileURL fileURL(fileSpec);
printf("If I could open a new window with [%s] I would.\n", (const char *)nsAutoCString(fileURL.GetAsString()));
}
#endif
NS_RELEASE(fileWidget);