1999-09-01 Federico Mena Quintero <federico@redhat.com>
* gscreen.c (panel_icon_renamed): Do nothing if the name did not change.
Этот коммит содержится в:
родитель
9712686402
Коммит
0ac4d17dd9
@ -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
|
||||
|
@ -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) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user