From 40c0a6aa8753ec80963c163f6d3c1baf6f5945af Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Thu, 18 Feb 2016 10:53:35 +0100 Subject: [PATCH] gtkplacessidebar: remove unneeded condition We check for it before anyway, and in this case make sense to show the eject button in both cases. --- gtk/gtkplacessidebar.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index e6dfbc22be..5e74d99aec 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -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,