Abort renaming when the filename is empty
This commit is contained in:
parent
5b67cf3d68
commit
8e35fcf8bf
|
@ -3710,6 +3710,8 @@ static void _view_on_filename_edited(GtkCellRendererText * renderer,
|
|||
fprintf(stderr, "DEBUG: %s(\"%s\", \"%s\") \"%s\"\n", __func__, path,
|
||||
filename);
|
||||
#endif
|
||||
if(strlen(filename) == 0)
|
||||
return;
|
||||
if(gtk_tree_model_get_iter_from_string(model, &iter, path) != TRUE)
|
||||
return; /* XXX report error */
|
||||
path = NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user