From 26192677c9ecf10573cf0df511fd093cfc6e6952 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Mon, 7 Mar 2016 11:52:45 +0100 Subject: window-slot: only create x-content-bar if necessary We were creating the x-content-bar every time, then the content bar was destroying itself (?) if no content type could be handled. Just avoid to create the content bar if no necessary. https://bugzilla.gnome.org/show_bug.cgi?id=762703 --- src/nautilus-window-slot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index 54a5e6cfb..c12453b8b 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -1877,6 +1877,9 @@ nautilus_window_slot_show_x_content_bar (NautilusWindowSlot *slot, GMount *mount g_assert (NAUTILUS_IS_WINDOW_SLOT (slot)); + if (!should_handle_content_types (x_content_types)) + return; + bar = nautilus_x_content_bar_new (mount, x_content_types); gtk_widget_show (bar); nautilus_window_slot_add_extra_location_widget (slot, bar); -- cgit v1.2.1