preventive fix (missing check) found by Alfons
authorColin Leroy <colin@colino.net>
Fri, 15 Nov 2002 22:26:04 +0000 (22:26 +0000)
committerColin Leroy <colin@colino.net>
Fri, 15 Nov 2002 22:26:04 +0000 (22:26 +0000)
ChangeLog.claws
configure.in
src/folderview.c

index b73f112c6305a8c5d8ff2148503eec7f8fcabe0c..4af941cdf3b7ea51f41cad1fb1fd0c93e143a327 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-15 [colin]     0.8.5claws156
+
+       * src/folderview.c
+               Preventive fix (missing check) found by
+               Alfons
+
 2002-11-15 [paul]
 
        * NEWS
 2002-11-15 [paul]
 
        * NEWS
index 1181928ade69473f4ab9aa988958797263c8cdad..118c15b01f8d7fbbf3794cb0d622a83e904d33a7 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws155
+EXTRA_VERSION=claws156
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 8dd2d1c0eb1da606634015f50d78022801aa97e8..cb042557795f291fc3d069d58ceed32001507587 100644 (file)
@@ -2635,7 +2635,7 @@ static void folderview_drag_received_cb(GtkWidget        *widget,
                item = gtk_ctree_node_get_row_data(GTK_CTREE(widget), node);
                src_item = folder_find_item_from_path(source);
 
                item = gtk_ctree_node_get_row_data(GTK_CTREE(widget), node);
                src_item = folder_find_item_from_path(source);
 
-               if (!src_item || src_item->stype != F_NORMAL) {
+               if (!item || !src_item || src_item->stype != F_NORMAL) {
                        gtk_drag_finish(drag_context, FALSE, FALSE, time);                      
                        return;
                }
                        gtk_drag_finish(drag_context, FALSE, FALSE, time);                      
                        return;
                }