fix folder flicker introduced in claws22
[claws.git] / src / mainwindow.c
index 076640f4350d5a8e770500d5e1a510d73f311173..2536905bf24ae229a537f8568200964ad322da1a 100644 (file)
@@ -3564,7 +3564,8 @@ static void key_pressed (GtkWidget *widget, GdkEventKey *event,   gpointer data)
                app_exit_cb(mainwin, 0, NULL);
                return;
        case GDK_space:
-               if (mainwin->folderview && mainwin->summaryview ) {
+               if (mainwin->folderview && mainwin->summaryview
+                   && !mainwin->summaryview->displayed) {
                        summary_lock(mainwin->summaryview);
                        folderview_select_next_unread(mainwin->folderview);
                        summary_unlock(mainwin->summaryview);