aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-04-23 18:49:46 +0800
committerMilan Crha <mcrha@redhat.com>2012-04-23 18:49:46 +0800
commite4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7 (patch)
tree46751fc357638293f6a8e48a003378758f52c032 /modules
parent12256b4f1cc7def560824ed5fb3c506669709a32 (diff)
downloadgsoc2013-evolution-e4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7.tar
gsoc2013-evolution-e4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7.tar.gz
gsoc2013-evolution-e4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7.tar.bz2
gsoc2013-evolution-e4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7.tar.lz
gsoc2013-evolution-e4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7.tar.xz
gsoc2013-evolution-e4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7.tar.zst
gsoc2013-evolution-e4cce2eeae7889b82ff9a1da5d4062a83f2cbdf7.zip
Bug #564820 - Search filter persists when changing folders
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-view-private.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index 9a58f9d2b7..e043d7d49e 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -852,8 +852,13 @@ e_mail_shell_view_restore_state (EMailShellView *mail_shell_view)
reader = E_MAIL_READER (mail_view);
folder = e_mail_reader_get_folder (reader);
- if (folder == NULL)
+ if (folder == NULL) {
+ if (e_shell_searchbar_get_state_group (searchbar)) {
+ e_shell_searchbar_set_state_group (searchbar, NULL);
+ e_shell_searchbar_load_state (searchbar);
+ }
return;
+ }
/* Do not restore state if we're running a "Current Account"
* or "All Accounts" search, since we don't want the search