1999-10-20 Federico Mena Quintero <federico@redhat.com>

* gdesktop.c (text_changed): Do not try to rename the file if the
	name did not change.  BUGFIX: GNOME bug tracker #2851.
This commit is contained in:
Miguel de Icaza 1999-10-21 00:36:10 +00:00
parent 3aaae3089a
commit 1b0a9eaae1
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-10-20 Federico Mena Quintero <federico@redhat.com>
* gdesktop.c (text_changed): Do not try to rename the file if the
name did not change. BUGFIX: GNOME bug tracker #2851.
1999-10-06 Jonathan Blandford <jrb@redhat.com>
* gpopup2.c (create_actions): Now the Mount/Unmount/Eject device

View File

@ -945,6 +945,11 @@ text_changed (GnomeIconTextItem *iti, gpointer data)
new_name = gnome_icon_text_item_get_text (iti);
if (gnome_metadata_get (source, "icon-caption", &size, &buf) != 0) {
if (strcmp (new_name, dii->filename) == 0) {
g_free (source);
return TRUE;
}
/* No icon caption metadata, so rename the file */
dest = g_concat_dir_and_file (desktop_directory, new_name);

View File

@ -6388,7 +6388,7 @@ msgstr ""
#: vfs/smbfs.c:1971
#, c-format
msgid " %s renaming files\n"
msgstr " %s bytes in %d file %s"
msgstr " %s bytes in %d file %s\n"
#: vfs/tar.c:84 vfs/tar.c:101
#, c-format