aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index 114bc32f36..e176c27d80 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -1836,7 +1836,7 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri)
emfb->priv->idle_scroll_id = 0;
}
- if (emfb->view.folder) {
+ if (emfb->view.folder && emfb->priv->folder_changed_id) {
camel_object_remove_event(emfb->view.folder, emfb->priv->folder_changed_id);
emfb->priv->folder_changed_id = 0;
}