diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-23 15:53:46 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-23 17:03:26 -0400 |
commit | 3198d71d297bf2dfcf2201e391f8ea3afa2b5dc7 (patch) | |
tree | b4f909ab85821c3da389a23fe78fcaf34a04262a /src | |
parent | 65c02e2cd70a5913087c0636021eea7acab6e969 (diff) | |
download | nautilus-3198d71d297bf2dfcf2201e391f8ea3afa2b5dc7.tar.gz |
window: make sure search button state is consistent with query editor
In addition to checking whether the directory is a search, check for the
query editor visibility. This ensures the toggle button state is
consistent when switching tabs with the query editor visible in one of
those.
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index b09bd5ea6..2f676b2f6 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -698,7 +698,8 @@ nautilus_window_sync_search_widgets (NautilusWindow *window) search_directory = NAUTILUS_SEARCH_DIRECTORY (directory); } - if (search_directory != NULL || slot->load_with_search) { + if (search_directory != NULL || slot->load_with_search || + gtk_widget_get_visible (GTK_WIDGET (slot->query_editor))) { slot->load_with_search = FALSE; toggle_toolbar_search_button (window, TRUE); } else { |