Commit afb80a57 authored by Benjamin Berg's avatar Benjamin Berg
Browse files

presence: Fix error detection when syncing initial screensaver state

The preview bugfix in commit f5115349 was incorrect as it tested for
the variant to be non-NULL to detect an error (rather than NULL).

Fix this.
parent a576f4db
......@@ -239,7 +239,7 @@ screensaver_get_active_cb (GDBusProxy *screensaver_proxy,
gboolean is_active;
data = g_dbus_proxy_call_finish (screensaver_proxy, res, &error);
if (data) {
if (!data) {
if (error) {
g_warning ("Could not retrieve current screensaver active state: %s",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment