зеркало из https://github.com/mozilla/gecko-dev.git
Fix to properly call new wrapper for GetFile dialog.
This commit is contained in:
Родитель
a298d7b5cd
Коммит
f197fdaa60
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче