Ignore:
Timestamp:
10/29/13 07:20:00 (11 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:
9cc1b3c
Parents:
2a873ce
Message:

Have the AppCafe? also check/update the installed PBI icons whenever it just updates a single PBI. This should catch those rare instances where the AppCafe? is aware of an installed PBI before the icon is added to the PBI database and update the icon on the TreeWidgetItem?.

File:
1 edited

Legend:

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

    r4ba4baf r6763bdf  
    276276 
    277277void MainUI::slotPBIStatusUpdate(QString pbiID){ 
     278  //This will do a full update of a particlar PBI entry 
     279  //    and just update/check the icons for all the other PBI's 
    278280  for(int i=0; i<ui->tree_install_apps->topLevelItemCount(); i++){ 
    279281    QString itemID = ui->tree_install_apps->topLevelItem(i)->whatsThis(0); 
     
    289291        slotUpdateSelectedPBI(true);; //only update status 
    290292      } 
    291       return; // Found our match, we can return now 
     293    }else{ 
     294      //Just check/update the icon if necessary 
     295      if(ui->tree_install_apps->topLevelItem(i)->icon(0).isNull()){ 
     296         ui->tree_install_apps->topLevelItem(i)->setIcon(0, QIcon( PBI->PBIInfo(itemID, QStringList() << "icon").join("") )); 
     297      } 
    292298    } 
    293299  } 
Note: See TracChangeset for help on using the changeset viewer.