aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRudolfs <rudolfs.mazurus@gmail.com>2012-04-11 19:21:57 +0800
committerXan Lopez <xan@igalia.com>2012-04-11 19:22:45 +0800
commitff013df012c08044216250f38c79913cb196cbf4 (patch)
tree36a034cbf25c80c3e08c12cab8201c3ff5c7dc79 /src
parentb8157349612cd043892ebdf180a2f3ab106fd39e (diff)
downloadgsoc2013-epiphany-ff013df012c08044216250f38c79913cb196cbf4.tar.gz
gsoc2013-epiphany-ff013df012c08044216250f38c79913cb196cbf4.tar.zst
gsoc2013-epiphany-ff013df012c08044216250f38c79913cb196cbf4.zip
ephy-shell: respect the lockdown quit setting
https://bugzilla.gnome.org/show_bug.cgi?id=673649
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[] = {