From 54ceff0ed9f6f9085d084903453e77950e41ace3 Mon Sep 17 00:00:00 2001 From: 8 Date: Thu, 8 Jan 2004 15:42:09 +0000 Subject: Don't save the file if disable_save_to_disk is on. 2004-01-08 * embed/mozilla/ContentHandler.cpp (MIMEAskAction): Don't save the file if disable_save_to_disk is on. * lib/ephy-prefs.h (CONF_DISABLE_SAVE_TO_DISK): Added this key here. * src/ephy-window.c (update_actions): Obey disable_save_to_disk. Also, disable toggling view settings if their keys are locked. --- embed/mozilla/ContentHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embed/mozilla/ContentHandler.cpp') diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index 32a18ca96..eee5bca71 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -316,8 +316,9 @@ NS_METHOD GContentHandler::MIMEAskAction (void) if (!auto_open || !DefaultApp || permission != EPHY_MIME_PERMISSION_SAFE) { + if (eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_SAVE_TO_DISK)) return NS_OK; nsCOMPtr launcher; - + rv = mContentHandler->GetLauncher (getter_AddRefs(launcher)); if (NS_FAILED (rv)) return rv; launcher->SaveToDisk (nsnull,PR_FALSE); -- cgit v1.2.3