From 8fa39b31dec0263e9c5a669e8a074f55c32cf9ce Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 24 Jan 2004 12:12:08 +0000 Subject: Prepare for 1.1.4 2004-01-24 Marco Pesenti Gritti * NEWS: * configure.in: Prepare for 1.1.4 * embed/mozilla/ContentHandler.cpp: Fix Save As from download dialog --- embed/mozilla/ContentHandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'embed/mozilla/ContentHandler.cpp') diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index a92f2ce02..0d315d8e5 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -135,7 +135,7 @@ NS_IMETHODIMP GContentHandler::PromptForSaveToFile( dialog = ephy_file_chooser_new (_("Save"), parentWindow, GTK_FILE_CHOOSER_ACTION_SAVE, - CONF_STATE_DOWNLOAD_DIR); + CONF_STATE_SAVE_DIR); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), NS_ConvertUCS2toUTF8 (aDefaultFile).get()); response = gtk_dialog_run (GTK_DIALOG (dialog)); @@ -143,9 +143,13 @@ NS_IMETHODIMP GContentHandler::PromptForSaveToFile( if (response == EPHY_RESPONSE_SAVE) { filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)); - BuildDownloadPath (filename, _retval); + + nsCOMPtr destFile (do_CreateInstance(NS_LOCAL_FILE_CONTRACTID)); + destFile->InitWithNativePath (nsDependentCString (filename)); g_free (filename); + NS_IF_ADDREF (*_retval = destFile); + gtk_widget_destroy (GTK_WIDGET (dialog)); return NS_OK; -- cgit v1.2.3