bugfix-try: always try to show msginfo in headerwindow.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 2 Jun 2001 16:30:27 +0000 (16:30 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 2 Jun 2001 16:30:27 +0000 (16:30 +0000)
ChangeLog.claws
src/headerwindow.c

index 7294d41..bb987f9 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-02 [alfons]
+
+       * src/headerwindow.c:
+
+               (headerwindow_show_cb): always try to show msginfo
+
 2001-06-02 [hoa]
 
        * src/compose.c
index d040591..68c3921 100644 (file)
@@ -159,11 +159,11 @@ void header_window_show_cb(gpointer data, guint action, GtkWidget *widget)
        GtkCTreeNode *node = mainwin->summaryview->displayed;
        MsgInfo *msginfo;
 
-       if (node && !GTK_WIDGET_VISIBLE(mainwin->headerwin->window)) {
-               msginfo = gtk_ctree_node_get_row_data
-                       (GTK_CTREE(mainwin->summaryview->ctree), node);
-               header_window_show(mainwin->headerwin, msginfo);
-       }
+       g_return_if_fail(node != NULL);
+
+       msginfo = gtk_ctree_node_get_row_data
+               (GTK_CTREE(mainwin->summaryview->ctree), node);
+       header_window_show(mainwin->headerwin, msginfo);
 
        gtk_widget_hide(mainwin->headerwin->window);
        gtk_widget_show(mainwin->headerwin->window);