summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-11-25 16:50:16 +0200
committerAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-11-27 14:14:45 +0200
commit3759585272c578a3d324238deb1eb9362465796e (patch)
treed6728878c882bf4982b14f6f508ed2f5dfbbe777
parentf0eea48d75569ebf48c850232b6d54a59dfbb2cd (diff)
downloadnautilus-3759585272c578a3d324238deb1eb9362465796e.tar.gz
properties-window: fix checking inconsistent state
In the function initial_permission_state_consistent, when the check was made to see if the files have the same permissions, the check was not correct. To fix this, also do & between the first_permissions and the mask. https://bugzilla.gnome.org/show_bug.cgi?id=698955
-rw-r--r--src/nautilus-properties-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index b333458bd..ec80d4e2f 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -3462,7 +3462,7 @@ initial_permission_state_consistent (NautilusPropertiesWindow *window,
first_permissions = permissions;
first = FALSE;
}
- else if ((permissions & mask) != first_permissions)
+ else if ((permissions & mask) != (first_permissions & mask))
{
/* Not same permissions as first -> inconsistent */
return FALSE;