remove useless check
authorPaul <paul@claws-mail.org>
Fri, 24 Jul 2015 14:17:40 +0000 (15:17 +0100)
committerPaul <paul@claws-mail.org>
Fri, 24 Jul 2015 14:17:40 +0000 (15:17 +0100)
src/summaryview.c

index aee456d..c4be0d0 100644 (file)
@@ -4953,9 +4953,8 @@ gboolean summary_execute(SummaryView *summaryview)
                        summary_unselect_all(summaryview);
                        if (summaryview->sort_type == SORT_ASCENDING)
                                new_selected = summary_find_next_msg(summaryview, node);
-                       if (!new_selected)
-                               new_selected = summary_find_prev_msg
-                                       (summaryview, node);
+                       else
+                               new_selected = summary_find_prev_msg(summaryview, node);
                }
 
                gtk_sctree_remove_node((GtkSCTree *)ctree, node);