captive_file_parent_move(): Update 'captive_file_parent_object->pathname'.
authorshort <>
Sat, 6 Dec 2003 18:25:29 +0000 (18:25 +0000)
committershort <>
Sat, 6 Dec 2003 18:25:29 +0000 (18:25 +0000)
src/libcaptive/client/file-parent.c

index e0348ff..1d0da83 100644 (file)
@@ -531,8 +531,11 @@ gint retried=0;
                        return r;
                if (GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE
                                !=(r=captive_sandbox_parent_file_move(captive_file_parent_object_old,pathname_new,force_replace))) {
-                       if (GNOME_VFS_OK==r)
+                       if (GNOME_VFS_OK==r) {
+                               g_free(captive_file_parent_object_old->pathname);
+                               captive_file_parent_object_old->pathname=g_strdup(pathname_new);
                                captive_parent_connector_set_dirty(CAPTIVE_PARENT_CONNECTOR(captive_file_parent_object_old));
+                               }
                        return r;
                        }
                } while (!retried++);