[gnome-commander/gcmd-1-3] Fixed problem #591944 (permissions set to 000 after chmod)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-3] Fixed problem #591944 (permissions set to 000 after chmod)
- Date: Thu, 20 Aug 2009 15:29:25 +0000 (UTC)
commit f2379ee2e4f11992c8d3dbd98807b26ff9259838
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Aug 19 23:30:35 2009 +0200
Fixed problem #591944 (permissions set to 000 after chmod)
src/gnome-cmd-chmod-component.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-chmod-component.cc b/src/gnome-cmd-chmod-component.cc
index 8af3e5c..94e5dd0 100644
--- a/src/gnome-cmd-chmod-component.cc
+++ b/src/gnome-cmd-chmod-component.cc
@@ -204,14 +204,14 @@ GtkType gnome_cmd_chmod_component_get_type ()
GnomeVFSFilePermissions gnome_cmd_chmod_component_get_perms (GnomeCmdChmodComponent *comp)
{
- GnomeVFSFilePermissions perms = (GnomeVFSFilePermissions) 0;
+ guint perms = 0;
for (gint y=0; y<3; y++)
for (gint x=0; x<3; x++)
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (comp->priv->check_boxes[y][x])))
- (int &) perms |= check_perm[y][x];
+ perms |= check_perm[y][x];
- return perms;
+ return (GnomeVFSFilePermissions) perms;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]