gtkplacessidebar: remove unneeded condition

We check for it before anyway, and in this case make sense to show the
eject button in both cases.
This commit is contained in:
Carlos Soriano 2016-02-18 10:53:35 +01:00
parent 5a253c546a
commit 40c0a6aa87

View File

@ -451,10 +451,7 @@ add_place (GtkPlacesSidebar *sidebar,
if (show_unmount || show_eject)
g_assert (place_type != PLACES_BOOKMARK);
if (mount == NULL)
show_eject_button = FALSE;
else
show_eject_button = (show_unmount || show_eject);
show_eject_button = (show_unmount || show_eject);
tooltip_escaped = g_markup_escape_text (tooltip, -1);
row = g_object_new (GTK_TYPE_SIDEBAR_ROW,