aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2005-08-11 14:02:31 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2005-08-11 14:02:31 +0800
commit2fa1dd24d2f04c4bbfd738bbce842d30b9cb82e7 (patch)
treed8179cf470fa4645799ef396b5360b8f8f84d7d9 /mail/em-folder-view.c
parent79e68e099cb9e3b1a93201ade1f9609d82807ead (diff)
downloadgsoc2013-evolution-2fa1dd24d2f04c4bbfd738bbce842d30b9cb82e7.tar.gz
gsoc2013-evolution-2fa1dd24d2f04c4bbfd738bbce842d30b9cb82e7.tar.zst
gsoc2013-evolution-2fa1dd24d2f04c4bbfd738bbce842d30b9cb82e7.zip
return the target in any case. It will be an empty target and not NULL.
2005-08-11 Parthasarathi Susarla <sparthasarathi@novell.com> * em-folder-view.c (emfv_enable_menus): return the target in any case. It will be an empty target and not NULL. Fixes bug ** 312420 svn path=/trunk/; revision=30086
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index e108e0a90e..a02bd19aca 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -1827,14 +1827,10 @@ emfv_enable_menus(EMFolderView *emfv)
{
if (emfv->menu) {
- if (emfv->folder) {
- EMMenuTargetSelect *t;
+ EMMenuTargetSelect *t;
- t = em_menu_target_new_select(emfv->menu, emfv->folder, emfv->folder_uri, message_list_get_selected(emfv->list));
- e_menu_update_target((EMenu *)emfv->menu, t);
- } else {
- e_menu_update_target((EMenu *)emfv->menu, NULL);
- }
+ t = em_menu_target_new_select(emfv->menu, emfv->folder, emfv->folder_uri, message_list_get_selected(emfv->list));
+ e_menu_update_target((EMenu *)emfv->menu, t);
}
}