Changeset da39501


Ignore:
Timestamp:
08/26/13 10:46:28 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
539d8eb
Parents:
11b9eef
Message:

Make sure that empty entries are not put into the AppCafe? installed list (this rerely happened expect for a second when installing a PBI that had already been downloaded for some reason).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/mainUI.cpp

    r80faf74 rda39501  
    235235        //Now format the display 
    236236        formatInstalledItemDisplay(item); 
    237         //Now insert this item onto the list 
    238         ui->tree_install_apps->insertTopLevelItem(i,item); 
    239         cList.insert(i,installList[i]); //reflect this inclusion into the current list 
     237        if(item->text(0).isEmpty()){ 
     238          //Do not put empty items into the display 
     239          delete item; 
     240        }else{ 
     241          //Now insert this item onto the list 
     242          ui->tree_install_apps->insertTopLevelItem(i,item); 
     243          cList.insert(i,installList[i]); //reflect this inclusion into the current list 
     244        } 
    240245      }else if(todo==1){ 
    241246        //Update current item 
Note: See TracChangeset for help on using the changeset viewer.