mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-23 02:34:14 +03:00
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:
parent
3aaae3089a
commit
1b0a9eaae1
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user