commit d9ece0c2071862f33836294d1421fa9feb3ad9ac
parent 891319d4702d0a77dcf77f3ac5b33752bdc8e56b
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Tue, 16 Oct 2018 18:16:02 +0200
In summary_key_pressed(), do not try to reopen the same message if cursor does not change.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/summaryview.c b/src/summaryview.c
@@ -7010,7 +7010,8 @@ static gboolean summary_key_pressed(GtkWidget *widget, GdkEventKey *event,
break;
}
- if (next) {
+ if (next != NULL &&
+ next != gtk_cmctree_node_nth(ctree, GTK_CMCLIST(ctree)->focus_row)) {
gtk_sctree_select_with_state
(GTK_SCTREE(ctree), next, (event->state & ~GDK_CONTROL_MASK) );