nautilus-sendto r388 - in trunk: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus-sendto r388 - in trunk: . src
- Date: Fri, 16 Jan 2009 20:28:02 +0000 (UTC)
Author: hadess
Date: Fri Jan 16 20:28:02 2009
New Revision: 388
URL: http://svn.gnome.org/viewvc/nautilus-sendto?rev=388&view=rev
Log:
2009-01-16 Bastien Nocera <hadess hadess net>
* src/nautilus-sendto-command.c (nautilus_sendto_init):
Fix filenames and URIs being mixed in the filelist, spotted
by Andrew Prunicki <prunand iit edu>
Modified:
trunk/ChangeLog
trunk/src/nautilus-sendto-command.c
Modified: trunk/src/nautilus-sendto-command.c
==============================================================================
--- trunk/src/nautilus-sendto-command.c (original)
+++ trunk/src/nautilus-sendto-command.c Fri Jan 16 20:28:02 2009
@@ -725,16 +725,15 @@
force_user_to_compress = TRUE;
uri = g_filename_to_uri (filename, NULL, NULL);
+ g_free (filename);
escaped = escape_ampersands (uri);
- g_free (uri);
- if (escaped == NULL)
- file_list = g_list_prepend (file_list, filename);
- else {
- g_free (filename);
+ if (escaped == NULL) {
+ file_list = g_list_prepend (file_list, uri);
+ } else {
file_list = g_list_prepend (file_list, escaped);
+ g_free (uri);
}
-
}
if (file_list == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]