1999-09-01 Federico Mena Quintero <federico@redhat.com>

* gscreen.c (panel_icon_renamed): Do nothing if the name did not
	change.
This commit is contained in:
Miguel de Icaza 1999-09-01 19:28:57 +00:00
parent 9712686402
commit 0ac4d17dd9
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-09-01 Federico Mena Quintero <federico@redhat.com>
* gscreen.c (panel_icon_renamed): Do nothing if the name did not
change.
1999-08-30 Federico Mena Quintero <federico@redhat.com>
* gdnd.c (file_has_drop_action): New function to test whether a

View File

@ -1464,7 +1464,10 @@ panel_icon_renamed (GtkWidget *widget, int index, char *dest, WPanel *panel)
char *fullname;
int retval;
source = g_concat_dir_and_file (cpanel->cwd, panel->dir.list [index].fname);
if (strcmp (dest, panel->dir.list[index].fname) == 0)
return TRUE; /* do nothing if the name did not change */
source = g_concat_dir_and_file (cpanel->cwd, panel->dir.list[index].fname);
fullname = g_concat_dir_and_file (cpanel->cwd, dest);
if (rename_file_with_context (source, dest) == FILE_CONT) {