wow, a segfault hiding, waiting to bite
[claws.git] / src / folderview.c
index 7ff620e35ea6bdfbd23d7de86b890d14b45ef107..9e9ead87b291776496c75569bc08aa1e5f3f02ce 100644 (file)
@@ -2663,7 +2663,8 @@ static void folderview_drag_received_cb(GtkWidget        *widget,
                STATUSBAR_PUSH(folderview->mainwin, _("Done."));
                main_window_cursor_normal(folderview->mainwin);
                summary_clear_all(folderview->summaryview);
-               folderview_select(folderview, new_item);
+               if (new_item)
+                       folderview_select(folderview, new_item);
        }
 }