Ignore:
Timestamp:
02/28/14 05:28:02 (18 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2, releng/10.2, stable/10
Children:
a07b515
Parents:
f996b547
Message:

Clean up a couple more backup functions in the AppCafe?:
1) If you try to remove a non-installed PBI, it will simply cancel the installation instead
2) Make sure that if a non-installed PBI is right-clicked, it only shows the "cancel" option.

File:
1 edited

Legend:

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

    r4e7809d redece96  
    537537      mmenu->addAction( QIcon(":icons/add-root.png"),tr("Add (All Users)"),this,SLOT(slotActionAddMenuAll()) ); 
    538538  } 
    539   //Paths are always available 
     539  //Paths are always available if actually installed 
     540  if( !PBI->isInstalled(pbiID).isEmpty() ){ 
    540541    QMenu *pmenu = contextActionMenu->addMenu( QIcon(":icons/xdg_paths.png"), tr("Path Links")); 
    541542      pmenu->addAction( QIcon(":icons/add.png"),tr("Add"),this,SLOT(slotActionAddPath()) ); 
    542543      pmenu->addAction( QIcon(":icons/remove.png"),tr("Remove"),this,SLOT(slotActionRemovePath()) );   
    543544      pmenu->addAction( QIcon(":icons/add-root.png"),tr("Add (All Users)"),this,SLOT(slotActionAddPathAll()) ); 
     545  } 
    544546  if(info[2]=="true"){ 
    545547    QMenu *fmenu = contextActionMenu->addMenu( QIcon(":icons/xdg_mime.png"), tr("File Associations")); 
     
    11951197  ui->tool_bapp_download->setEnabled(FALSE); //make sure it cannot be clicked more than once before page refresh 
    11961198  //Now show the Installed tab 
    1197   //ui->tabWidget->setCurrentWidget(ui->tab_installed); 
     1199  ui->tabWidget->setCurrentWidget(ui->tab_installed); 
    11981200} 
    11991201 
Note: See TracChangeset for help on using the changeset viewer.