corrected little issue : first image was not disappearing after selecting
authorColin Leroy <colin@colino.net>
Tue, 23 Apr 2002 21:42:53 +0000 (21:42 +0000)
committerColin Leroy <colin@colino.net>
Tue, 23 Apr 2002 21:42:53 +0000 (21:42 +0000)
second one, when prefs_common.display_img was false.

src/mimeview.c

index f6cc55e3dd1c03cc38ba80fc5232732c371b5c73..b10a4554c6b1c466235ef097811add6f7abe22fc 100644 (file)
@@ -548,8 +548,10 @@ static void mimeview_selected(GtkCTree *ctree, GtkCTreeNode *node, gint column,
        case MIME_IMAGE:
                if (prefs_common.display_img)
                        mimeview_show_image_part(mimeview, partinfo);
-               else
+               else {
+                       mimeview_change_view_type(mimeview, MIMEVIEW_TEXT);
                        textview_show_mime_part(mimeview->textview, partinfo);
+               }
                break;
 #endif
        default: