Commit e759e823 authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

pathbar: Fix crash when accessing drive root

The path bar button data is not properly set up when type button type is
“root”.
parent 263ed291
......@@ -2128,13 +2128,9 @@ make_button_data (NautilusPathBar *self,
switch (button_data->type)
{
case ROOT_BUTTON:
{
child = button_data->image;
button_data->label = NULL;
}
break;
/* Fall through */
case HOME_BUTTON:
/* Fall through */
case MOUNT_BUTTON:
case RECENT_BUTTON:
case STARRED_BUTTON:
......@@ -2149,6 +2145,7 @@ make_button_data (NautilusPathBar *self,
break;
case NORMAL_BUTTON:
/* Fall through */
default:
{
button_data->label = gtk_label_new (NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment