[gnome-commander] Fix for showing error when pressing okay in file props dialog without changing the file access mode
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fix for showing error when pressing okay in file props dialog without changing the file access mode
- Date: Sun, 11 Jul 2021 21:45:31 +0000 (UTC)
commit 7ae62d4e141dd011da117c27427383ec58971ecd
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Jun 26 16:16:58 2021 +0200
Fix for showing error when pressing okay in file props dialog without changing the file access mode
src/dialogs/gnome-cmd-file-props-dialog.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/dialogs/gnome-cmd-file-props-dialog.cc b/src/dialogs/gnome-cmd-file-props-dialog.cc
index eb949a0e..58c33678 100644
--- a/src/dialogs/gnome-cmd-file-props-dialog.cc
+++ b/src/dialogs/gnome-cmd-file-props-dialog.cc
@@ -206,7 +206,7 @@ static void on_dialog_ok (GtkButton *btn, GnomeCmdFilePropsDialogPrivate *data)
{
auto perms = gnome_cmd_chmod_component_get_perms (GNOME_CMD_CHMOD_COMPONENT (data->chmod_component));
- if (perms != GetGfileAttributeUInt32(data->f->gFile, G_FILE_ATTRIBUTE_UNIX_MODE) & 0xFFF )
+ if (perms != (GetGfileAttributeUInt32(data->f->gFile, G_FILE_ATTRIBUTE_UNIX_MODE) & 0xFFF ))
retValue = data->f->chmod(perms, &error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]