Date:2014-01-19 23:10:42 (9 months 5 days ago)
Author:Paul Cercueil
Commit:1792e6329b8da3461f330fb46f7a0ebca06f40ca
Message:Change sort order so that OPKs are listed after normal links

Files: src/menu.cpp (1 diff)

Change Details

src/menu.cpp
812812
813813static bool compare_links(Link *a, Link *b)
814814{
815    LinkApp *app1 = dynamic_cast<LinkApp *>(a);
816    LinkApp *app2 = dynamic_cast<LinkApp *>(b);
817    bool app1_is_opk = app1 && app1->isOpk(),
818         app2_is_opk = app2 && app2->isOpk();
819
820    if (app1_is_opk && !app2_is_opk)
821            return false;
822    if (app2_is_opk && !app1_is_opk)
823            return true;
815824    return a->getTitle().compare(b->getTitle()) <= 0;
816825}
817826

Archive Download the corresponding diff file



interactive