* src/summaryview.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 17 Sep 2002 21:10:52 +0000 (21:10 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 17 Sep 2002 21:10:52 +0000 (21:10 +0000)
summary_sort(): check non-NULL summaryview->folder_item when no
folder is selected at all
(closes "[ 610344 ] sort label make syl Crash")

ChangeLog.claws
configure.in
src/summaryview.c

index d891b4d..4d4c9af 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-17 [alfons]    0.8.2claws56
+       
+       * src/summaryview.c
+               summary_sort(): check non-NULL summaryview->folder_item when no 
+               folder is selected at all
+               (closes "[ 610344 ] sort label make syl Crash")
+
 2002-09-17 [alfons]    0.8.2claws55
        
        * src/compose.c
index 6d77b20..1d04d40 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws55
+EXTRA_VERSION=claws56
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 745d74d..17422a0 100644 (file)
@@ -1978,9 +1978,10 @@ void summary_sort(SummaryView *summaryview,
                cmp_func = (GtkCListCompareFunc)summary_cmp_by_date;
                break;
        case SORT_BY_FROM:
-               cmp_func = summaryview->folder_item->stype != F_OUTBOX ? 
-                       (GtkCListCompareFunc) summary_cmp_by_from :
-                       (GtkCListCompareFunc) summary_cmp_by_to;
+               if (summaryview->folder_item && summaryview->folder_item->stype != F_OUTBOX)
+                       cmp_func = (GtkCListCompareFunc) summary_cmp_by_from;
+               else                    
+                       cmp_func = (GtkCListCompareFunc) summary_cmp_by_to;
                break;
        case SORT_BY_SUBJECT:
                if (summaryview->simplify_subject_preg)