Changeset 0c521ba


Ignore:
Timestamp:
12/17/13 06:48:10 (11 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
cdc82ac
Parents:
8996623
Message:

Add an "uncategorized" group for pkg's that have a package origin without a category (I.E. "/sqirrelmail-plugin-notes" and others)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/EasyPBI/pkgSelect.cpp

    rebba654 r0c521ba  
    3232  QTreeWidgetItem* cCat = new QTreeWidgetItem(QStringList() << "gobbledegook"); 
    3333  for(int i=0; i<PL.length(); i++){ 
    34     QString cat = PL[i].section("/",0,0,QString::SectionSkipEmpty); 
     34    QString cat = PL[i].section("/",0,0); 
    3535    QString pkg = PL[i].section("/",-1); 
     36    if(cat.isEmpty()){ cat = "uncategorized";  } 
    3637    if(cat != cCat->text(0)){ 
    3738      //Create a new parent item for this category 
Note: See TracChangeset for help on using the changeset viewer.