aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-04-01 08:17:24 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-04-01 08:17:24 +0800
commit94513cd4bed10979f56df454b584a404440b6c04 (patch)
treea85093820a18767f942374af723b9ab5ff25f419
parent068f78ac7e1f40bea3dfff7f80c1be7e0d251023 (diff)
downloadgsoc2013-evolution-94513cd4bed10979f56df454b584a404440b6c04.tar
gsoc2013-evolution-94513cd4bed10979f56df454b584a404440b6c04.tar.gz
gsoc2013-evolution-94513cd4bed10979f56df454b584a404440b6c04.tar.bz2
gsoc2013-evolution-94513cd4bed10979f56df454b584a404440b6c04.tar.lz
gsoc2013-evolution-94513cd4bed10979f56df454b584a404440b6c04.tar.xz
gsoc2013-evolution-94513cd4bed10979f56df454b584a404440b6c04.tar.zst
gsoc2013-evolution-94513cd4bed10979f56df454b584a404440b6c04.zip
only noop if we only have 1 message selected, otherwise we don't update
2005-03-31 Not Zed <NotZed@Ximian.com> * message-list.c (on_selection_changed_cmd): only noop if we only have 1 message selected, otherwise we don't update the menu's. Fixes a problem introduced by 64987's fix. svn path=/trunk/; revision=29141
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 25be1c65b2..12bea76cf7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-31 Not Zed <NotZed@Ximian.com>
+
+ * message-list.c (on_selection_changed_cmd): only noop if we only
+ have 1 message selected, otherwise we don't update the menu's.
+ Fixes a problem introduced by 64987's fix.
+
2005-03-30 Li Yuan <li.yuan@sun.com>
* em-account-prefs.c: (em_account_prefs_treeview_new):
diff --git a/mail/message-list.c b/mail/message-list.c
index 41a4d7a855..9a7aaaaeda 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2881,7 +2881,7 @@ on_cursor_activated_idle (gpointer data)
MessageList *message_list = data;
ESelectionModel *esm = e_tree_get_selection_model (message_list->tree);
int selected = e_selection_model_selected_count (esm);
-
+
if (selected == 1 && message_list->cursor_uid) {
d(printf ("emitting cursor changed signal, for uid %s\n", message_list->cursor_uid));
g_signal_emit (message_list, message_list_signals[MESSAGE_SELECTED], 0, message_list->cursor_uid);
@@ -2940,7 +2940,7 @@ on_selection_changed_cmd(ETree *tree, MessageList *ml)
is also used for other updating. If it is empty, it might just be a setup event
from etree which we do need to ignore */
if ((newuid == NULL && ml->cursor_uid == NULL && uids->len == 0)
- || (newuid != NULL && ml->cursor_uid != NULL && !strcmp(ml->cursor_uid, newuid))) {
+ || (uids->len == 1 && newuid != NULL && ml->cursor_uid != NULL && !strcmp(ml->cursor_uid, newuid))) {
/* noop */
} else {
g_free(ml->cursor_uid);