From ff013df012c08044216250f38c79913cb196cbf4 Mon Sep 17 00:00:00 2001 From: Rudolfs Date: Wed, 11 Apr 2012 13:21:57 +0200 Subject: ephy-shell: respect the lockdown quit setting https://bugzilla.gnome.org/show_bug.cgi?id=673649 --- src/ephy-shell.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ephy-shell.c') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 290c5dcc6..21dd70d9a 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -246,8 +246,11 @@ quit_application (GSimpleAction *action, GVariant *parameter, gpointer user_data) { - ephy_session_close (EPHY_SESSION (ephy_shell_get_session (ephy_shell))); - g_application_quit (g_application_get_default ()); + if (!g_settings_get_boolean (EPHY_SETTINGS_LOCKDOWN, + EPHY_PREFS_LOCKDOWN_QUIT)) { + ephy_session_close (EPHY_SESSION (ephy_shell_get_session (ephy_shell))); + g_application_quit (g_application_get_default ()); + } } static GActionEntry app_entries[] = { -- cgit v1.2.3