diff options
author | lukefromdc <[email protected]> | 2018-07-06 18:14:43 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-07-11 19:20:53 -0400 |
commit | 162015e9f3158d4c579c7c2ed3faf61f31e9bb83 (patch) | |
tree | 1b0c64da6a46df9a423c2d6ccc4c9db2f10b6de6 /src | |
parent | 191aa3992171c84134f0359a960e5bebc7bfeca4 (diff) | |
download | caja-162015e9f3158d4c579c7c2ed3faf61f31e9bb83.tar.bz2 caja-162015e9f3158d4c579c7c2ed3faf61f31e9bb83.tar.xz |
pathbar: Fix crash when accessing drive root
Apply github.com/GNOME/nautilus/commit/e759e82386f80fb214a420b789b07a194480462c
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')
-rw-r--r-- | src/caja-pathbar.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c index 7e2b294a..27427aca 100644 --- a/src/caja-pathbar.c +++ b/src/caja-pathbar.c @@ -1901,12 +1901,13 @@ make_directory_button (CajaPathBar *path_bar, switch (button_data->type) { case ROOT_BUTTON: - child = button_data->image; - button_data->label = NULL; - break; + /* Fall through */ case HOME_BUTTON: + /* Fall through */ case DESKTOP_BUTTON: + /* Fall through */ case MOUNT_BUTTON: + /* Fall through */ case DEFAULT_LOCATION_BUTTON: button_data->label = gtk_label_new (NULL); child = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); |