[gnome-commander/gcmd-1-2-8] Fixed problem #646871 (crash on file properties when connected to FTP)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] Fixed problem #646871 (crash on file properties when connected to FTP)
- Date: Sun, 24 Jul 2011 22:48:29 +0000 (UTC)
commit e3dfa77098a5ed84228ffef269b735f5f0023318
Author: Cristian Buzduga <cristianbzdg gmail com>
Date: Mon Jul 25 00:46:41 2011 +0200
Fixed problem #646871 (crash on file properties when connected to FTP)
NEWS | 2 +-
doc/C/gnome-commander.xml | 2 +-
src/gnome-cmd-chown-component.cc | 9 +++++++--
3 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/NEWS b/NEWS
index c0fdae5..731794f 100644
--- a/NEWS
+++ b/NEWS
@@ -3,7 +3,7 @@ gnome-commander 1.2.8.13
---------------
Bug fixes:
- * Fixed problem ...
+ * Fixed problem #646871 (crash on file properties when connected to FTP)
===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 1b187a0..b5b3b27 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6099,7 +6099,7 @@
<para>
<itemizedlist>
<listitem>
- <para>Fixed problem ...</para>
+ <para>Fixed problem #646871 (crash on file properties when connected to FTP)</para>
</listitem>
</itemizedlist>
</para>
diff --git a/src/gnome-cmd-chown-component.cc b/src/gnome-cmd-chown-component.cc
index 00a842a..8fe998a 100644
--- a/src/gnome-cmd-chown-component.cc
+++ b/src/gnome-cmd-chown-component.cc
@@ -152,8 +152,13 @@ GtkType gnome_cmd_chown_component_get_type ()
void gnome_cmd_chown_component_set (GnomeCmdChownComponent *comp, uid_t uid, gid_t gid)
{
- gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (comp->priv->user_combo)->entry), gcmd_owner.users[uid]);
- gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (comp->priv->group_combo)->entry), gcmd_owner.groups[gid]);
+ const gchar *uid_name = gcmd_owner.users[uid];
+ const gchar *gid_name = gcmd_owner.groups[gid];
+
+ if (uid_name)
+ gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (comp->priv->user_combo)->entry), uid_name);
+ if (gid_name)
+ gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (comp->priv->group_combo)->entry), gid_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]