use the selected summary view item, not the displayed item.
[claws.git] / src / headerwindow.c
index 68c3921301cf3196e3d09f287d1ac33471e995c3..dc42f562cca33a8fad50ec8a1519429b3747e2d6 100644 (file)
@@ -156,7 +156,7 @@ void header_window_show(HeaderWindow *headerwin, MsgInfo *msginfo)
 void header_window_show_cb(gpointer data, guint action, GtkWidget *widget)
 {
        MainWindow *mainwin = data;
-       GtkCTreeNode *node = mainwin->summaryview->displayed;
+       GtkCTreeNode *node = mainwin->summaryview->selected;
        MsgInfo *msginfo;
 
        g_return_if_fail(node != NULL);