aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-shell.c7
1 files changed, 5 insertions, 2 deletions
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[] = {