check changed value of lock 68/47368/2
authorSoohye Shin <soohye.shin@samsung.com>
Thu, 3 Sep 2015 01:23:18 +0000 (10:23 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Thu, 3 Sep 2015 01:25:35 +0000 (10:25 +0900)
Change-Id: Iec50737de5386037400830597e403fc3a6d00fdf
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/view/view_user_edit.c

index 8e58ac6..fabb73d 100644 (file)
@@ -214,6 +214,16 @@ static bool _check_changed_input(struct _priv *priv)
        const char *photo, *name;
        int i;
 
+       /**
+        * Default value
+        *
+        * locked is true, pin and name is empty.
+        * Icon is user icon or default icon
+        */
+
+       if (!priv->locked)
+               return true;
+
        for (i = 0; i < COUNT_PIN; i++) {
                if (!elm_entry_is_empty(priv->pin[i]))
                        return true;