summaryrefslogtreecommitdiff
path: root/src/nautilus-pathbar.c
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-04-14 15:45:46 +0300
committerErnestas Kulik <ernestask@gnome.org>2018-04-14 15:45:46 +0300
commite759e82386f80fb214a420b789b07a194480462c (patch)
tree4c9b468c142302a05fa4f541a9ee06c53ad8ea68 /src/nautilus-pathbar.c
parent263ed291886bccfd431db7512481457dd7393106 (diff)
downloadnautilus-e759e82386f80fb214a420b789b07a194480462c.tar.gz
pathbar: Fix crash when accessing drive root
The path bar button data is not properly set up when type button type is “root”.
Diffstat (limited to 'src/nautilus-pathbar.c')
-rw-r--r--src/nautilus-pathbar.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 4ee6e8c4e..6accd87b5 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -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);