[gnome-control-center] background: Handle no-flags from saved config



commit 2a146db805b1674f90820416a3ba2d9bb30442f8
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 14 07:43:30 2011 +0000

    background: Handle no-flags from saved config

 panels/background/cc-background-item.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-item.c b/panels/background/cc-background-item.c
index b110a75..c81ac91 100644
--- a/panels/background/cc-background-item.c
+++ b/panels/background/cc-background-item.c
@@ -857,6 +857,9 @@ cc_background_item_compare (CcBackgroundItem *saved,
 	CcBackgroundItemFlags flags;
 
 	flags = saved->priv->flags;
+	if (flags == 0)
+		return FALSE;
+
 	if (flags & CC_BACKGROUND_ITEM_HAS_URI) {
 		if (files_equal (saved->priv->uri, configured->priv->uri) == FALSE)
 			return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]