Return parent path for dummy paths.
Wed Jul 23 18:43:20 2003 Owen Taylor <otaylor@redhat.com> * gtkfilesystemmodel.c (_gtk_file_system_model_get_path): Return parent path for dummy paths.
This commit is contained in:
@ -805,6 +805,9 @@ _gtk_file_system_model_get_path (GtkFileSystemModel *model,
|
|||||||
{
|
{
|
||||||
FileModelNode *node = iter->user_data;
|
FileModelNode *node = iter->user_data;
|
||||||
|
|
||||||
|
if (node->is_dummy)
|
||||||
|
return node->parent->path;
|
||||||
|
else
|
||||||
return node->path;
|
return node->path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user