diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-08-08 14:47:01 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-08-08 14:47:01 +0800 |
commit | 0014b8c62e298231da5180a298360a0a24fb2095 (patch) | |
tree | f0cd1b09673d42f68115834f1ee2a3e180df31eb /mail/em-folder-browser.c | |
parent | fbc08b4c26608b550a78366a007fba27c451dae5 (diff) | |
download | gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar.gz gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar.zst gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.zip |
Added a command line option to disable preview/selection for crash on select.
svn path=/trunk/; revision=33967
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r-- | mail/em-folder-browser.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index 7af149fba5..3778a5f5f4 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -1894,8 +1894,18 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri) if (folder) { char *sstate; int state; + gboolean safe; GConfClient *gconf = mail_config_get_gconf_client(); + safe = gconf_client_get_bool (gconf, "/apps/evolution/mail/display/safe_list", NULL); + if (safe) { + if (camel_object_meta_set(emfv->folder, "evolution:show_preview", "0") && + camel_object_meta_set(emfv->folder, "evolution:selected_uid", NULL)) { + camel_object_state_write(emfv->folder); + } + gconf_client_set_bool (gconf, "/apps/evolution/mail/display/safe_list", FALSE, NULL); + } + mail_refresh_folder(folder, NULL, NULL); emfb->priv->folder_changed_id = camel_object_hook_event(folder, "folder_changed", |