From f197fdaa60f9c367ad5f095687349c6ab354a9ba Mon Sep 17 00:00:00 2001 From: "sdagley%netscape.com" Date: Thu, 8 Apr 1999 02:59:30 +0000 Subject: [PATCH] Fix to properly call new wrapper for GetFile dialog. --- xpfe/AppCores/src/nsBrowserAppCore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpfe/AppCores/src/nsBrowserAppCore.cpp b/xpfe/AppCores/src/nsBrowserAppCore.cpp index 19cd1a923489..4f6011899eba 100644 --- a/xpfe/AppCores/src/nsBrowserAppCore.cpp +++ b/xpfe/AppCores/src/nsBrowserAppCore.cpp @@ -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);