* Fixes NB#82750, do not allow multiple selection after moving messages
authorSergio Villar Senin <svillar@igalia.com>
Wed, 9 Apr 2008 15:21:05 +0000 (15:21 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 9 Apr 2008 15:21:05 +0000 (15:21 +0000)
pmo-trunk-r4390

src/modest-ui-actions.c

index 8b78ccd..8a0620e 100644 (file)
@@ -4528,6 +4528,10 @@ move_to_cb (ModestMailOperation *mail_op,
                                                                           MODEST_MAIN_WINDOW_WIDGET_TYPE_HEADER_VIEW);
                        sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (header_view));
                        path = gtk_tree_row_reference_get_path (helper->reference);
+                       /* We need to unselect the previous one
+                          because we could be copying instead of
+                          moving */
+                       gtk_tree_selection_unselect_all (sel);
                        gtk_tree_selection_select_path (sel, path);
                        gtk_tree_path_free (path);
                }