[evolution/gnome-40] I#1537 - EShellSearchbar: Search option not saved on change



commit 5aea2f420ca1606d0716c36975ff7cc914b6e5dc
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 21 14:36:01 2021 +0200

    I#1537 - EShellSearchbar: Search option not saved on change
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1537

 src/shell/e-shell-searchbar.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/shell/e-shell-searchbar.c b/src/shell/e-shell-searchbar.c
index 49bb3d3f91..df98e8dde3 100644
--- a/src/shell/e-shell-searchbar.c
+++ b/src/shell/e-shell-searchbar.c
@@ -459,12 +459,11 @@ shell_searchbar_option_changed_cb (GtkRadioAction *action,
        if (current_value != SEARCH_OPTION_ADVANCED) {
                e_shell_view_set_search_rule (shell_view, NULL);
                e_shell_searchbar_set_search_text (searchbar, search_text);
-               if (search_text != NULL && *search_text != '\0') {
+
+               if (search_text != NULL && *search_text != '\0')
                        e_shell_view_execute_search (shell_view);
-               } else {
-                       shell_searchbar_save_search_option (searchbar);
-               }
 
+               shell_searchbar_save_search_option (searchbar);
        } else if (search_text != NULL)
                e_shell_searchbar_set_search_text (searchbar, NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]