diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-04-10 14:39:14 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-04-10 14:39:14 +0200 |
commit | 700dbeacd2c0377e4f1c9c48565f61e437c40534 (patch) | |
tree | 0cce03a79cdb3386bd6be17b28e2554df782258e /src/backend-dbus | |
parent | 99418d9780518e2bcda8034ad9cb950b899f8cea (diff) | |
download | ayatana-indicator-session-700dbeacd2c0377e4f1c9c48565f61e437c40534.tar.gz ayatana-indicator-session-700dbeacd2c0377e4f1c9c48565f61e437c40534.tar.bz2 ayatana-indicator-session-700dbeacd2c0377e4f1c9c48565f61e437c40534.zip |
DBusActions: use if/else instead of returning in lock_current_session
Diffstat (limited to 'src/backend-dbus')
-rw-r--r-- | src/backend-dbus/actions.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c index 3d4b6f0..cac7c40 100644 --- a/src/backend-dbus/actions.c +++ b/src/backend-dbus/actions.c @@ -811,13 +811,13 @@ lock_current_session (IndicatorSessionActions * self, gboolean immediate) { unity_session_call_lock (p->unity_session, p->cancellable, NULL, NULL); } - - return; } + else + { + g_return_if_fail (p->screen_saver != NULL); - g_return_if_fail (p->screen_saver != NULL); - - gnome_screen_saver_call_lock (p->screen_saver, p->cancellable, NULL, NULL); + gnome_screen_saver_call_lock (p->screen_saver, p->cancellable, NULL, NULL); + } } static void |