Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure that empty entries are not put into the AppCafe installed l…

…ist (this rerely happened expect for a second when installing a PBI that had already been downloaded for some reason).
  • Loading branch information...
commit da39501646ea161f9c836270938346679b10245c 1 parent 11b9eef
@beanpole135 beanpole135 authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 src-qt4/pc-softwaremanager/mainUI.cpp
View
11 src-qt4/pc-softwaremanager/mainUI.cpp
@@ -234,9 +234,14 @@ void MainUI::slotRefreshInstallTab(){
item->setWhatsThis(0,installList[i]);
//Now format the display
formatInstalledItemDisplay(item);
- //Now insert this item onto the list
- ui->tree_install_apps->insertTopLevelItem(i,item);
- cList.insert(i,installList[i]); //reflect this inclusion into the current list
+ if(item->text(0).isEmpty()){
+ //Do not put empty items into the display
+ delete item;
+ }else{
+ //Now insert this item onto the list
+ ui->tree_install_apps->insertTopLevelItem(i,item);
+ cList.insert(i,installList[i]); //reflect this inclusion into the current list
+ }
}else if(todo==1){
//Update current item
formatInstalledItemDisplay( ui->tree_install_apps->topLevelItem(i) );
Please sign in to comment.
Something went wrong with that request. Please try again.