diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-03-07 11:52:45 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-03-07 12:37:10 +0100 |
commit | 26192677c9ecf10573cf0df511fd093cfc6e6952 (patch) | |
tree | 0f8f53feb60257bf2e3d73ee8a731ef1534a6970 | |
parent | 293bffd2472fb574e782b1ebf1f192dc006fa719 (diff) | |
download | nautilus-26192677c9ecf10573cf0df511fd093cfc6e6952.tar.gz |
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
-rw-r--r-- | src/nautilus-window-slot.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |