Just update the internal sort method
authorKlaus Ethgen <Klaus@Ethgen.de>
Fri, 10 Apr 2009 13:54:08 +0000 (13:54 +0000)
committerKlaus Ethgen <Klaus@Ethgen.de>
Fri, 10 Apr 2009 13:54:08 +0000 (13:54 +0000)
There is no other use of the internal sort method than speeding up the
sorting of a collection. So setting it to SORT_NONE is the better
choice.

src/collect.c

index 2a78318..6d42bc2 100644 (file)
@@ -606,6 +606,7 @@ void collection_randomize(CollectionData *cd)
        if (!cd) return;
 
        cd->list = collection_list_randomize(cd->list);
+       cd->sort_method = SORT_NONE;
        if (cd->list) cd->changed = TRUE;
 
        collection_window_refresh(collection_window_find(cd));