[maemo-commits] [maemo-commits] r13232 - in projects/haf/trunk/hildon-fm: . hildon-fm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Aug 16 13:17:52 EEST 2007
Author: marivoll
Date: 2007-08-16 13:17:51 +0300 (Thu, 16 Aug 2007)
New Revision: 13232

Modified:
   projects/haf/trunk/hildon-fm/ChangeLog
   projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-obex.c
Log:
	* hildon-fm/hildon-file-system-obex.c
	(hildon_file_system_obex_create_child_location): Use the escaped
	version of the URI as the base_path so that we can correctly find
	this node later.


Modified: projects/haf/trunk/hildon-fm/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-fm/ChangeLog	2007-08-16 10:16:42 UTC (rev 13231)
+++ projects/haf/trunk/hildon-fm/ChangeLog	2007-08-16 10:17:51 UTC (rev 13232)
@@ -1,3 +1,10 @@
+2007-08-16  Marius Vollmer  <marius.vollmer at nokia.com>
+
+	* hildon-fm/hildon-file-system-obex.c
+	(hildon_file_system_obex_create_child_location): Use the escaped
+	version of the URI as the base_path so that we can correctly find
+	this node later.
+
 2007-08-15  Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>
 
 	* hildon-fm/hildon-file-system-voldev.h: Make the type member to

Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-obex.c
===================================================================
--- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-obex.c	2007-08-16 10:16:42 UTC (rev 13231)
+++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-obex.c	2007-08-16 10:17:51 UTC (rev 13232)
@@ -136,7 +136,6 @@
     HildonFileSystemSpecialLocation *child = NULL;
     gchar *skipped, *found, *new_uri, *name;
 
-
     skipped = uri + strlen (location->basepath) + 1;
 
     found = strchr (skipped, G_DIR_SEPARATOR);
@@ -164,13 +163,15 @@
             hildon_file_system_special_location_set_display_name (child, name);
             g_free (name);
         }
-        child->basepath = new_uri;
+	
+	g_free (new_uri);
+
+        child->basepath = g_strdup (uri);
         child->failed_access_message = _("sfil_ib_cannot_connect_device");
 
         HILDON_FILE_SYSTEM_OBEX(location)->has_children = TRUE;
     }
 
-
     return child;
 }
 


More information about the maemo-commits mailing list