зеркало из 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));
|
printf("If I could open a new window with [%s] I would.\n", (const char *)nsAutoCString(fileURL));
|
||||||
#else // New Way
|
#else // New Way
|
||||||
nsFileSpec fileSpec;
|
nsFileSpec fileSpec;
|
||||||
fileWidget->GetFile(fileSpec);
|
if (fileWidget->GetFile(nsnull, title, fileSpec) == nsFileDlgResults_OK) {
|
||||||
|
|
||||||
nsFileURL fileURL(fileSpec);
|
nsFileURL fileURL(fileSpec);
|
||||||
printf("If I could open a new window with [%s] I would.\n", (const char *)nsAutoCString(fileURL.GetAsString()));
|
printf("If I could open a new window with [%s] I would.\n", (const char *)nsAutoCString(fileURL.GetAsString()));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
NS_RELEASE(fileWidget);
|
NS_RELEASE(fileWidget);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче