6b3a111bef
(patch from head) - Fix a crash in the Properties dialog while changing owner (patch from head)
26 lines
850 B
Diff
26 lines
850 B
Diff
Index: src/file-manager/fm-properties-window.c
|
|
===================================================================
|
|
--- src/file-manager/fm-properties-window.c (revision 13898)
|
|
+++ src/file-manager/fm-properties-window.c (working copy)
|
|
@@ -1924,7 +1924,8 @@
|
|
|
|
static void
|
|
owner_change_callback (NautilusFile *file,
|
|
- GError *error,
|
|
+ GFile *result_location,
|
|
+ GError *error,
|
|
FMPropertiesWindow *window)
|
|
{
|
|
char *owner;
|
|
@@ -2067,7 +2068,9 @@
|
|
g_assert (NAUTILUS_IS_FILE (file));
|
|
|
|
owner_text = combo_box_get_active_entry (combo_box, 0);
|
|
- name_array = g_strsplit (owner_text, " - ", 2);
|
|
+ if (! owner_text)
|
|
+ return;
|
|
+ name_array = g_strsplit (owner_text, " - ", 2);
|
|
new_owner = name_array[0];
|
|
g_free (owner_text);
|
|
cur_owner = nautilus_file_get_owner_name (file);
|