[nautilus] properties-window: fix checking inconsistent state
- From: Alexandru-Ionut Pandelea <alexpandelea src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] properties-window: fix checking inconsistent state
- Date: Sun, 27 Nov 2016 12:24:52 +0000 (UTC)
commit 3759585272c578a3d324238deb1eb9362465796e
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date: Fri Nov 25 16:50:16 2016 +0200
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
src/nautilus-properties-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index b333458..ec80d4e 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]