[evolution] I#1562 - Mail: Global search prevents execution of the saved searches
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1562 - Mail: Global search prevents execution of the saved searches
- Date: Fri, 23 Jul 2021 09:16:11 +0000 (UTC)
commit e38045230c8ea18402dfb9072fde6724b4761187
Author: Milan Crha <mcrha redhat com>
Date: Fri Jul 23 11:15:26 2021 +0200
I#1562 - Mail: Global search prevents execution of the saved searches
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1562
src/modules/mail/e-mail-shell-view-private.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/modules/mail/e-mail-shell-view-private.c b/src/modules/mail/e-mail-shell-view-private.c
index 44dd24c26a..ad161670c8 100644
--- a/src/modules/mail/e-mail-shell-view-private.c
+++ b/src/modules/mail/e-mail-shell-view-private.c
@@ -781,6 +781,7 @@ e_mail_shell_view_restore_state (EMailShellView *mail_shell_view)
gchar *folder_uri;
gchar *tmp = NULL;
GSettings *settings;
+ GtkWidget *message_list;
/* XXX Move this to EMailShellContent. */
@@ -829,9 +830,11 @@ e_mail_shell_view_restore_state (EMailShellView *mail_shell_view)
}
old_state_group = e_shell_searchbar_get_state_group (searchbar);
+ message_list = e_mail_reader_get_message_list (reader);
- /* Avoid loading search state unnecessarily, unless it's the global search. */
- if (!tmp || g_strcmp0 (new_state_group, old_state_group) != 0) {
+ /* Avoid loading search state unnecessarily. */
+ if ((!tmp && IS_MESSAGE_LIST (message_list) && MESSAGE_LIST (message_list)->just_set_folder) ||
+ g_strcmp0 (new_state_group, old_state_group) != 0) {
e_shell_searchbar_set_state_group (searchbar, new_state_group);
e_shell_searchbar_load_state (searchbar);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]