[nautilus/gnome-3-22] properties-window: fix checking inconsistent state
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-22] properties-window: fix checking inconsistent state
- Date: Fri, 9 Dec 2016 23:41:05 +0000 (UTC)
commit b135c90d9733095714bc4021cdffb55dc11c423f
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 769c4f5..e2dc19f 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -3505,7 +3505,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]