[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gcmd-dev] ftp fix
From: |
Marius Siegas |
Subject: |
[gcmd-dev] ftp fix |
Date: |
Fri, 25 Jul 2008 13:38:42 +0300 |
Hi,
I've just subscribed to the list so please be kind to me if any...
I've noticed in gcmd when copying a file to FTP, in case that file
already exists there, it says "(null)" instead of file name, so I
browsed the code and changed a line in there to fix this. Here's my
svn diff:
Index: gnome-cmd-xfer.cc
===================================================================
--- gnome-cmd-xfer.cc (revision 1906)
+++ gnome-cmd-xfer.cc (working copy)
@@ -158,7 +158,7 @@
if (info->status == GNOME_VFS_XFER_PROGRESS_STATUS_OVERWRITE)
{
- gchar *t = gnome_vfs_get_local_path_from_uri (info->target_name);
+ gchar* t = str_uri_basename(info->target_name);
gchar *fn = get_utf8 (t);
gchar *msg = g_strdup_printf (_("The file \"%s\" already
exists.\n\nDo you want to overwrite it?\n"), fn);
--
Marius
- [gcmd-dev] ftp fix,
Marius Siegas <=